class ConstantContact::Components::LibraryFile

Attributes

created_date[RW]
description[RW]
file_type[RW]
folder[RW]
folder_id[RW]
height[RW]
id[RW]
is_image[RW]
modified_date[RW]
name[RW]
size[RW]
source[RW]
status[RW]
thumbnail[RW]
type[RW]
url[RW]
width[RW]

Public Class Methods

create(props) click to toggle source

Factory method to create a LibraryFile object from a json string @param [Hash] props - properties to create object from @return [LibraryFile]

# 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