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