Class: Menard::PartnerPortalUploader::Result

Inherits:
Data
  • Object
show all
Defined in:
app/services/menard/partner_portal_uploader.rb

Overview

Service object: result.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(uploaded: nil, message: nil, screenshot_path: nil) ⇒ Result

Returns a new instance of Result.



33
# File 'app/services/menard/partner_portal_uploader.rb', line 33

def initialize(uploaded: nil, message: nil, screenshot_path: nil) = super

Instance Attribute Details

#messageObject (readonly)

Returns the value of attribute message

Returns:

  • (Object)

    the current value of message



32
33
34
# File 'app/services/menard/partner_portal_uploader.rb', line 32

def message
  @message
end

#screenshot_pathObject (readonly)

Returns the value of attribute screenshot_path

Returns:

  • (Object)

    the current value of screenshot_path



32
33
34
# File 'app/services/menard/partner_portal_uploader.rb', line 32

def screenshot_path
  @screenshot_path
end

#uploadedObject (readonly)

Returns the value of attribute uploaded

Returns:

  • (Object)

    the current value of uploaded



32
33
34
# File 'app/services/menard/partner_portal_uploader.rb', line 32

def uploaded
  @uploaded
end

Instance Method Details

#uploaded?Boolean

Returns:

  • (Boolean)


34
# File 'app/services/menard/partner_portal_uploader.rb', line 34

def uploaded? = !!uploaded