Sha256: cf9267feaf55959f9b516f5695618561cce79469d5c1ef189c2e846570ad8680
Contents?: true
Size: 659 Bytes
Versions: 1
Compression:
Stored size: 659 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) schedule = Schedule.new if props props = props.first if props.is_a?(Array) props.each do |key, value| schedule.send("#{key}=", value) end end schedule end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
constantcontact-1.0.1 | lib/constantcontact/components/email_marketing/schedule.rb |