Class: Whatser::Subscription

Inherits:
Resource show all
Defined in:
lib/whatser/resources/subscription.rb

Instance Attribute Summary collapse

Attributes inherited from Resource

#json

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_atObject

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_idObject

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_nameObject

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

#idObject

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