Class: ThreeTapsAPI::Location
- Inherits:
-
Object
- Object
- ThreeTapsAPI::Location
- Defined in:
- lib/three_taps_api/location.rb
Overview
Class for describing the 3taps location in an API-specific way
Instance Attribute Summary collapse
-
#country ⇒ Object
Add more attributes as they are tested.
-
#zipcode ⇒ Object
Add more attributes as they are tested.
Instance Method Summary collapse
-
#initialize(args) ⇒ Location
constructor
A new instance of Location.
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
#country ⇒ Object
Add more attributes as they are tested
5 6 7 |
# File 'lib/three_taps_api/location.rb', line 5 def country @country end |
#zipcode ⇒ Object
Add more attributes as they are tested
5 6 7 |
# File 'lib/three_taps_api/location.rb', line 5 def zipcode @zipcode end |