Sha256: 4748546602cb6ec39c93c76495e6b889ed515e9c7229a837fb6453ed0273bccb
Contents?: true
Size: 728 Bytes
Versions: 1
Compression:
Stored size: 728 Bytes
Contents
module ShelbyArena # This is a helper class for the person object so the data coming # through via Virtus is a hash that has been converted to an array. class Address < ApiObject attribute :address_id, Integer attribute :city, String attribute :country, String attribute :latitude, String attribute :longitude, String attribute :postal_code, String attribute :primary, Boolean attribute :state, String attribute :street_line1, String # Constructor. # # @param data A hash of data def initialize(data) # data[0] is 'Address' # data[1] is a Hash of address info to match the attributes above. initialize_from_json_object(data[1]) end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
shelby-arena-api-0.3.2 | lib/api/address.rb |