Class: Points
- Inherits:
-
OpenPayResource
- Object
- OpenPayResource
- Points
- Defined in:
- lib/openpay/points.rb
Instance Attribute Summary
Attributes inherited from OpenPayResource
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
#getPointsBalance(token_id) ⇒ Object
5 6 7 8 |
# File 'lib/openpay/points.rb', line 5 def getPointsBalance(token_id) tokens=@api_hook.create(:tokens) tokens.getPoints(token_id) end |