Class: SPOT::Client
- Inherits:
-
Object
- Object
- SPOT::Client
- Defined in:
- lib/spot-gps/client.rb
Instance Attribute Summary collapse
-
#feed_id ⇒ Object
readonly
Returns the value of attribute feed_id.
-
#feed_password ⇒ Object
readonly
Returns the value of attribute feed_password.
Instance Method Summary collapse
-
#initialize(feed_id: nil, feed_password: nil) ⇒ Client
constructor
A new instance of Client.
- #messages ⇒ Object
Constructor Details
#initialize(feed_id: nil, feed_password: nil) ⇒ Client
Returns a new instance of Client.
5 6 7 8 9 |
# File 'lib/spot-gps/client.rb', line 5 def initialize(feed_id: nil, feed_password: nil) raise ArgumentError, "feed_id is required" unless feed_id @api_service = ApiService.new(feed_id: feed_id, feed_password: feed_password) end |
Instance Attribute Details
#feed_id ⇒ Object (readonly)
Returns the value of attribute feed_id.
3 4 5 |
# File 'lib/spot-gps/client.rb', line 3 def feed_id @feed_id end |
#feed_password ⇒ Object (readonly)
Returns the value of attribute feed_password.
3 4 5 |
# File 'lib/spot-gps/client.rb', line 3 def feed_password @feed_password end |