Sha256: 47f3f08a2d064545a7f542b102df007eff94918439332d1d0c1bc91598009d35
Contents?: true
Size: 1.1 KB
Versions: 10
Compression:
Stored size: 1.1 KB
Contents
module TheCity class Address < ApiObject tc_attr_accessor :city, :created_at, :id, :latitude, :location_type, :longitude, :privacy, :state, :street, :street2, :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
10 entries across 10 versions & 1 rubygems