Class: YouGotListed::Resource
- Inherits:
-
Object
- Object
- YouGotListed::Resource
- Defined in:
- lib/you_got_listed/resource.rb
Instance Attribute Summary collapse
-
#client ⇒ Object
Returns the value of attribute client.
Instance Method Summary collapse
-
#initialize(client) ⇒ Resource
constructor
A new instance of Resource.
- #process_get(path, params = {}, raise_error = false) ⇒ Object
- #process_post(path, params = {}, raise_error = false) ⇒ Object
Constructor Details
#initialize(client) ⇒ Resource
Returns a new instance of Resource.
6 7 8 |
# File 'lib/you_got_listed/resource.rb', line 6 def initialize(client) self.client = client end |
Instance Attribute Details
#client ⇒ Object
Returns the value of attribute client.
4 5 6 |
# File 'lib/you_got_listed/resource.rb', line 4 def client @client end |