Sha256: c2dca541e64d4657529731060dfa972c2a88a84089c22ed98357c67ef078ccf2
Contents?: true
Size: 1.07 KB
Versions: 16
Compression:
Stored size: 1.07 KB
Contents
module TheCity class Address < ApiObject tc_attr_accessor :city, :created_at, :id, :latitude, :location_type, :longitude, :privacy, :state, :street, :updated_at, :group_id, :zipcode # Loads the address by the specified ID. # # @param address_id The ID of the address to load. # # Returns a new {Address} object. def self.load_by_id(address_id) reader = AddressReader.new(address_id) self.new(reader.load_feed) rescue nil end # Constructor. # # @param json_data (optional) JSON data of the address. def initialize(json_data = nil) initialize_from_json_object(json_data) unless json_data.nil? end def save raise 'Address does not have a save method' end def delete raise 'Address does not have a delete method' end end end
Version data entries
16 entries across 16 versions & 1 rubygems