Class: Whatser::Subscription
- Defined in:
- lib/whatser/resources/subscription.rb
Instance Attribute Summary collapse
-
#created_at ⇒ Object
Returns the value of attribute created_at.
-
#data_source_id ⇒ Object
Returns the value of attribute data_source_id.
-
#data_source_name ⇒ Object
Returns the value of attribute data_source_name.
-
#id ⇒ Object
Returns the value of attribute id.
Attributes inherited from Resource
Class Method Summary collapse
Methods inherited from Resource
#api_request, api_request, client, convert_data_to_model, from_hash_to_model, #initialize, set
Constructor Details
This class inherits a constructor from Whatser::Resource
Instance Attribute Details
#created_at ⇒ Object
Returns the value of attribute created_at.
4 5 6 |
# File 'lib/whatser/resources/subscription.rb', line 4 def created_at @created_at end |
#data_source_id ⇒ Object
Returns the value of attribute data_source_id.
3 4 5 |
# File 'lib/whatser/resources/subscription.rb', line 3 def data_source_id @data_source_id end |
#data_source_name ⇒ Object
Returns the value of attribute data_source_name.
4 5 6 |
# File 'lib/whatser/resources/subscription.rb', line 4 def data_source_name @data_source_name end |
#id ⇒ Object
Returns the value of attribute id.
3 4 5 |
# File 'lib/whatser/resources/subscription.rb', line 3 def id @id end |
Class Method Details
.list(params = {}) ⇒ Object
7 8 9 |
# File 'lib/whatser/resources/subscription.rb', line 7 def list(params={}) api_request :get, "/api/subscriptions", {:query => params} end |