Class: Yournavigation::Client
- Inherits:
-
Object
- Object
- Yournavigation::Client
- Includes:
- HTTParty
- Defined in:
- lib/yournavigation/client.rb
Instance Attribute Summary collapse
-
#fpoint ⇒ Object
readonly
Returns the value of attribute fpoint.
-
#options ⇒ Object
readonly
Returns the value of attribute options.
-
#tpoint ⇒ Object
readonly
Returns the value of attribute tpoint.
Instance Method Summary collapse
- #gosmore ⇒ Object
-
#initialize(fpoint, tpoint, opts = {}) ⇒ Client
constructor
A new instance of Client.
Constructor Details
#initialize(fpoint, tpoint, opts = {}) ⇒ Client
Returns a new instance of Client.
14 15 16 17 18 |
# File 'lib/yournavigation/client.rb', line 14 def initialize fpoint, tpoint, opts={} @fpoint = fpoint @tpoint = tpoint @options = .merge opts end |
Instance Attribute Details
#fpoint ⇒ Object (readonly)
Returns the value of attribute fpoint.
12 13 14 |
# File 'lib/yournavigation/client.rb', line 12 def fpoint @fpoint end |
#options ⇒ Object (readonly)
Returns the value of attribute options.
12 13 14 |
# File 'lib/yournavigation/client.rb', line 12 def @options end |
#tpoint ⇒ Object (readonly)
Returns the value of attribute tpoint.
12 13 14 |
# File 'lib/yournavigation/client.rb', line 12 def tpoint @tpoint end |
Instance Method Details
#gosmore ⇒ Object
20 21 22 23 24 25 26 |
# File 'lib/yournavigation/client.rb', line 20 def gosmore if empty_points? GosmoreItem.new else parsed_response end end |