Class: ConstantContact::Components::LibraryFile

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

Instance Attribute Summary collapse

Class Method Summary collapse

Methods inherited from Component

#to_hash, to_hash_value, #to_json

Instance Attribute Details

#created_date ⇒ Object

Returns the value of attribute created_date



10
11
12
# File 'lib/constantcontact/components/library/file/library_file.rb', line 10

def created_date
  @created_date
end

#description ⇒ Object

Returns the value of attribute description



10
11
12
# File 'lib/constantcontact/components/library/file/library_file.rb', line 10

def description
  @description
end

#file_type ⇒ Object

Returns the value of attribute file_type



10
11
12
# File 'lib/constantcontact/components/library/file/library_file.rb', line 10

def file_type
  @file_type
end

#folder ⇒ Object

Returns the value of attribute folder



10
11
12
# File 'lib/constantcontact/components/library/file/library_file.rb', line 10

def folder
  @folder
end

#folder_id ⇒ Object

Returns the value of attribute folder_id



10
11
12
# File 'lib/constantcontact/components/library/file/library_file.rb', line 10

def folder_id
  @folder_id
end

#height ⇒ Object

Returns the value of attribute height



10
11
12
# File 'lib/constantcontact/components/library/file/library_file.rb', line 10

def height
  @height
end

#id ⇒ Object

Returns the value of attribute id



10
11
12
# File 'lib/constantcontact/components/library/file/library_file.rb', line 10

def id
  @id
end

#is_image ⇒ Object

Returns the value of attribute is_image



10
11
12
# File 'lib/constantcontact/components/library/file/library_file.rb', line 10

def is_image
  @is_image
end

#modified_date ⇒ Object

Returns the value of attribute modified_date



10
11
12
# File 'lib/constantcontact/components/library/file/library_file.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/file/library_file.rb', line 10

def name
  @name
end

#size ⇒ Object

Returns the value of attribute size



10
11
12
# File 'lib/constantcontact/components/library/file/library_file.rb', line 10

def size
  @size
end

#source ⇒ Object

Returns the value of attribute source



10
11
12
# File 'lib/constantcontact/components/library/file/library_file.rb', line 10

def source
  @source
end

#status ⇒ Object

Returns the value of attribute status



10
11
12
# File 'lib/constantcontact/components/library/file/library_file.rb', line 10

def status
  @status
end

#thumbnail ⇒ Object

Returns the value of attribute thumbnail



10
11
12
# File 'lib/constantcontact/components/library/file/library_file.rb', line 10

def thumbnail
  @thumbnail
end

#type ⇒ Object

Returns the value of attribute type



10
11
12
# File 'lib/constantcontact/components/library/file/library_file.rb', line 10

def type
  @type
end

#url ⇒ Object

Returns the value of attribute url



10
11
12
# File 'lib/constantcontact/components/library/file/library_file.rb', line 10

def url
  @url
end

#width ⇒ Object

Returns the value of attribute width



10
11
12
# File 'lib/constantcontact/components/library/file/library_file.rb', line 10

def width
  @width
end

Class Method Details

.create(props) ⇒ LibraryFile

Factory method to create a LibraryFile object from a json string

Parameters:

  • props (Hash) —
    • properties to create object from

Returns:



16
17
18
19
20
21
22
23
24
# File 'lib/constantcontact/components/library/file/library_file.rb', line 16

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