Class: ActiveWepay::Account

Inherits:
Base
  • Object
show all
Defined in:
lib/activewepay.rb

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

#call, #initialize

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(options)
   = self.new(options)

  theme = { name: 'Black and White', primary_color: 'FFFFFF', secondary_color: '000000', background_color: 'FFFFFF', button_color: 'FFFFFF' }
  .call('/account/create', .oauth_token, {
    :name => .name,
    :description => 'Automatically generated by Vocalem',
    :theme_object => theme 
  })
end