Class: ConstantContact::Components::LibraryFolder

Inherits:
Component
  • Object
show all
Defined in:
lib/constantcontact/components/library/folder/library_folder.rb

Instance Attribute Summary collapse

Class Method Summary collapse

Methods inherited from Component

#to_hash, to_hash_value, #to_json

Instance Attribute Details

#childrenObject

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_dateObject

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

#idObject

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_countObject

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

#levelObject

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_dateObject

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

#nameObject

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_idObject

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

Parameters:

  • props (Hash)
    • properties to create object from

Returns:



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