Class: Broke::Token
Instance Method Summary collapse
- #create(params) ⇒ Object
-
#initialize ⇒ Token
constructor
A new instance of Token.
Methods inherited from Broke
#charge, #pingback, #subscription, #token
Constructor Details
#initialize ⇒ Token
Returns a new instance of Token.
3 |
# File 'lib/broke/token.rb', line 3 def initialize; end |
Instance Method Details
#create(params) ⇒ Object
5 6 7 8 |
# File 'lib/broke/token.rb', line 5 def create params params[:public_key] = @@public_key post 'brick/token', params end |