Class: ConstantContact::Components::UploadStatus
- Defined in:
- lib/constantcontact/components/library/info/upload_status.rb
Instance Attribute Summary collapse
-
#description ⇒ Object
Returns the value of attribute description.
-
#file_id ⇒ Object
Returns the value of attribute file_id.
-
#status ⇒ Object
Returns the value of attribute status.
Class Method Summary collapse
-
.create(props) ⇒ UploadStatus
Factory method to create an UploadStatus object from a json string.
Methods inherited from Component
#to_hash, to_hash_value, #to_json
Instance Attribute Details
#description ⇒ Object
Returns the value of attribute description
10 11 12 |
# File 'lib/constantcontact/components/library/info/upload_status.rb', line 10 def description @description end |
#file_id ⇒ Object
Returns the value of attribute file_id
10 11 12 |
# File 'lib/constantcontact/components/library/info/upload_status.rb', line 10 def file_id @file_id end |
#status ⇒ Object
Returns the value of attribute status
10 11 12 |
# File 'lib/constantcontact/components/library/info/upload_status.rb', line 10 def status @status end |
Class Method Details
.create(props) ⇒ UploadStatus
Factory method to create an UploadStatus object from a json string
15 16 17 18 19 20 21 22 23 |
# File 'lib/constantcontact/components/library/info/upload_status.rb', line 15 def self.create(props) obj = UploadStatus.new if props props.each do |key, value| obj.send("#{key}=", value) if obj.respond_to?("#{key}=") end end obj end |