Sha256: 12cce8f9ea7acb8367589f31fa4e44542c002e3b6b2e16ffef8f6b8df25f1bde
Contents?: true
Size: 606 Bytes
Versions: 14
Compression:
Stored size: 606 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 - properties to create object from # @return [Schedule] 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 end end end
Version data entries
14 entries across 14 versions & 2 rubygems