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_dateObject

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

#descriptionObject

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_typeObject

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

#folderObject

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_idObject

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

#heightObject

Returns the value of attribute height



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

def height
  @height
end

#idObject

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_imageObject

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_dateObject

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

#nameObject

Returns the value of attribute name



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

def name
  @name
end

#sizeObject

Returns the value of attribute size



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

def size
  @size
end

#sourceObject

Returns the value of attribute source



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

def source
  @source
end

#statusObject

Returns the value of attribute status



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

def status
  @status
end

#thumbnailObject

Returns the value of attribute thumbnail



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

def thumbnail
  @thumbnail
end

#typeObject

Returns the value of attribute type



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

def type
  @type
end

#urlObject

Returns the value of attribute url



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

def url
  @url
end

#widthObject

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