Class: ConstantContact::Components::LibrarySummary

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

Instance Attribute Summary collapse

Class Method Summary collapse

Methods inherited from Component

#to_hash, to_hash_value, #to_json

Instance Attribute Details

#image_rootObject

Returns the value of attribute image_root



10
11
12
# File 'lib/constantcontact/components/library/info/library_summary.rb', line 10

def image_root
  @image_root
end

#max_free_file_numObject

Returns the value of attribute max_free_file_num



10
11
12
# File 'lib/constantcontact/components/library/info/library_summary.rb', line 10

def max_free_file_num
  @max_free_file_num
end

#max_premium_space_limitObject

Returns the value of attribute max_premium_space_limit



10
11
12
# File 'lib/constantcontact/components/library/info/library_summary.rb', line 10

def max_premium_space_limit
  @max_premium_space_limit
end

#max_upload_size_limitObject

Returns the value of attribute max_upload_size_limit



10
11
12
# File 'lib/constantcontact/components/library/info/library_summary.rb', line 10

def max_upload_size_limit
  @max_upload_size_limit
end

#usage_summaryObject

Returns the value of attribute usage_summary



10
11
12
# File 'lib/constantcontact/components/library/info/library_summary.rb', line 10

def usage_summary
  @usage_summary
end

Class Method Details

.create(props) ⇒ LibrarySummary

Factory method to create a LibrarySummary 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/info/library_summary.rb', line 15

def self.create(props)
  obj = LibrarySummary.new
  if props
    props.each do |key, value|
      obj.send("#{key}=", value) if obj.respond_to?("#{key}=")
    end
  end
  obj
end