Sha256: 17f7a24bf96cc0e59d07ebe16eb82dd86b3192a362369c7dd57893880c22a746
Contents?: true
Size: 611 Bytes
Versions: 1
Compression:
Stored size: 611 Bytes
Contents
# # schedule.rb # ConstantContact # # Copyright (c) 2013 Constant Contact. All rights reserved. module ConstantContact module Components class Schedule < Component attr_accessor :id, :scheduled_date # Factory method to create a Schedule object from an array # @param [Hash] props - hash of properties to create object from # @return [Schedule] def self.create(props) obj = Schedule.new if props props = props.first if props.is_a?(Array) props.each do |key, value| obj.send("#{key}=", value) if obj.respond_to? key end end obj end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
constantcontact-1.0.2 | lib/constantcontact/components/email_marketing/schedule.rb |