Sha256: 0dd05e9c01636aa9dbdf99b40bfd81f09c4a54a47569c03df4715dd4ae9fec61
Contents?: true
Size: 740 Bytes
Versions: 4
Compression:
Stored size: 740 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_line_1, 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
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
shelby-arena-api-0.3.1 | lib/api/address.rb |
shelby-arena-api-0.3.0 | lib/api/address.rb |
shelby-arena-api-0.2.2 | lib/api/address.rb |
shelby-arena-api-0.2.1 | lib/api/address.rb |