Class: Ryext::Client
- Inherits:
-
Object
- Object
- Ryext::Client
- Defined in:
- lib/ryext/client.rb
Instance Attribute Summary collapse
-
#account ⇒ Object
Returns the value of attribute account.
Instance Method Summary collapse
- #get(*args) ⇒ Object
-
#initialize(account) ⇒ Client
constructor
A new instance of Client.
- #post(*_args) ⇒ Object
Constructor Details
#initialize(account) ⇒ Client
Returns a new instance of Client.
5 6 7 |
# File 'lib/ryext/client.rb', line 5 def initialize(account) @account = account end |
Instance Attribute Details
#account ⇒ Object
Returns the value of attribute account.
3 4 5 |
# File 'lib/ryext/client.rb', line 3 def account @account end |
Instance Method Details
#get(*args) ⇒ Object
9 10 11 |
# File 'lib/ryext/client.rb', line 9 def get(*args) RestClient.get(*args) end |
#post(*_args) ⇒ Object
13 14 15 |
# File 'lib/ryext/client.rb', line 13 def post(*_args) raise NotImplementedError end |