Class: Mbsy::Ambassador
- Inherits:
-
Base
- Object
- Base
- Mbsy::Ambassador
show all
- Defined in:
- lib/mbsy/resources/ambassador.rb
Class Method Summary
collapse
Methods inherited from Base
api_url, call, element_name
Class Method Details
.all(params = {}) ⇒ Object
8
9
10
|
# File 'lib/mbsy/resources/ambassador.rb', line 8
def self.all(params={})
call('all', params)
end
|
.find(params = {}) ⇒ Object
3
4
5
6
|
# File 'lib/mbsy/resources/ambassador.rb', line 3
def self.find(params={})
raise ArgumentError, "You must include :email" unless params[:email]
call('get', params)
end
|
.stats(params = {}) ⇒ Object
12
13
14
15
|
# File 'lib/mbsy/resources/ambassador.rb', line 12
def self.stats(params={})
raise ArgumentError, "You must include :email" unless params[:email]
call('stats', params)
end
|
.update(params = {}) ⇒ Object
17
18
19
20
|
# File 'lib/mbsy/resources/ambassador.rb', line 17
def self.update(params={})
raise ArgumentError, "You must include :email or :uid" unless params[:email] || params[:uid]
call('update', params)
end
|