Class: ActiveWepay::Account
Constant Summary
Constants inherited from Base
Base::PRODUCTION_API_ENDPOINT, Base::PRODUCTION_UI_ENDPOINT, Base::STAGE_API_ENDPOINT, Base::STAGE_UI_ENDPOINT
Instance Attribute Summary
Attributes inherited from Base
#amount, #callback_uri, #errors, #id, #name, #oauth_token, #redirect_uri, #response
Class Method Summary collapse
Methods inherited from Base
Constructor Details
This class inherits a constructor from ActiveWepay::Base
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class ActiveWepay::Base
Class Method Details
.create(options) ⇒ Object
94 95 96 97 98 99 100 101 102 103 |
# File 'lib/activewepay.rb', line 94 def self.create() account = self.new() theme = { name: 'Black and White', primary_color: 'FFFFFF', secondary_color: '000000', background_color: 'FFFFFF', button_color: 'FFFFFF' } account.call('/account/create', account.oauth_token, { :name => account.name, :description => 'Automatically generated by Vocalem', :theme_object => theme }) end |