Sha256: 1116d1620efc04d53bc6b50eab183bd0ca42cc8df9b8802fa4d3c7cbddc56df4
Contents?: true
Size: 813 Bytes
Versions: 11
Compression:
Stored size: 813 Bytes
Contents
# # guest.rb # ConstantContact # # Copyright (c) 2013 Constant Contact. All rights reserved. module ConstantContact module Components module EventSpot class Guest < Component attr_accessor :guest_id, :guest_section # Factory method to create a Guest object from a hash # @param [Hash] props - hash of properties to create object from # @return [Guest] def self.create(props) obj = Guest.new props.each do |key, value| key = key.to_s if key == 'guest_section' obj.send("#{key}=", Components::EventSpot::GuestSection.create(value)) else obj.send("#{key}=", value) if obj.respond_to?("#{key}=") end end obj end end end end end
Version data entries
11 entries across 11 versions & 2 rubygems