Class: Referly::AccountProxy
- Inherits:
-
Object
- Object
- Referly::AccountProxy
- Defined in:
- lib/referly/account_proxy.rb
Instance Method Summary collapse
- #create(params = {}) ⇒ Object
-
#initialize(client) ⇒ AccountProxy
constructor
A new instance of AccountProxy.
Constructor Details
#initialize(client) ⇒ AccountProxy
Returns a new instance of AccountProxy.
3 4 5 |
# File 'lib/referly/account_proxy.rb', line 3 def initialize(client) @client = client end |
Instance Method Details
#create(params = {}) ⇒ Object
7 8 9 |
# File 'lib/referly/account_proxy.rb', line 7 def create(params={}) @client.post('/accounts', params)['account_id'] end |