Class: Tokens

Inherits:
OpenPayResource show all
Defined in:
lib/openpay/tokens.rb

Instance Attribute Summary

Attributes inherited from OpenPayResource

#api_hook

Instance Method Summary collapse

Methods inherited from OpenPayResource

#delete, #delete_all, #each, #env, #errors?, #get, #get_with_custom_url, #hash2json, #initialize, #json2hash, #list, #post, #put

Constructor Details

This class inherits a constructor from OpenPayResource

Instance Method Details

#getPoints(token_id) ⇒ Object



4
5
6
# File 'lib/openpay/tokens.rb', line 4

def getPoints(token_id)
  get("#{token_id}/points")
end