class ConstantContact::Components::Schedule

Attributes

id[RW]
scheduled_date[RW]

Public Class Methods

create(props) click to toggle source

Factory method to create a Schedule object from an array @param [Hash] props - properties to create object from @return [Schedule]

# File lib/constantcontact/components/email_marketing/schedule.rb, line 16
def self.create(props)
  obj = Schedule.new
  if props
    props.each do |key, value|
      obj.send("#{key}=", value) if obj.respond_to? key
    end
  end
  obj
end