Class: Menard::PartnerPortalUploader::Result

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

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.



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

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



26
27
28
# File 'app/services/menard/partner_portal_uploader.rb', line 26

def message
  @message
end

#screenshot_pathObject (readonly)

Returns the value of attribute screenshot_path

Returns:

  • (Object)

    the current value of screenshot_path



26
27
28
# File 'app/services/menard/partner_portal_uploader.rb', line 26

def screenshot_path
  @screenshot_path
end

#uploadedObject (readonly)

Returns the value of attribute uploaded

Returns:

  • (Object)

    the current value of uploaded



26
27
28
# File 'app/services/menard/partner_portal_uploader.rb', line 26

def uploaded
  @uploaded
end

Instance Method Details

#uploaded?Boolean

Returns:

  • (Boolean)


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

def uploaded? = !!uploaded