Class: ThreeTapsAPI::Location

Inherits:
Object
  • Object
show all
Defined in:
lib/three_taps_api/location.rb

Overview

Class for describing the 3taps location in an API-specific way

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(args) ⇒ Location

Returns a new instance of Location.



7
8
9
10
11
# File 'lib/three_taps_api/location.rb', line 7

def initialize(args)
  args.each do |k, v|
    self.send "#{k}=", v if self.class.method_defined? "#{k}"
  end
end

Instance Attribute Details

#countryObject

Add more attributes as they are tested



5
6
7
# File 'lib/three_taps_api/location.rb', line 5

def country
  @country
end

#zipcodeObject

Add more attributes as they are tested



5
6
7
# File 'lib/three_taps_api/location.rb', line 5

def zipcode
  @zipcode
end