Class: Vkdonate::Client
- Inherits:
-
Object
- Object
- Vkdonate::Client
- Defined in:
- lib/vkdonate/client.rb
Overview
Client which saves API key
Instance Method Summary collapse
- #donates(**options) ⇒ Object
-
#initialize(api_key) ⇒ Client
constructor
New client to work with API.
- #request(action, **options) ⇒ Object
Constructor Details
#initialize(api_key) ⇒ Client
New client to work with API
8 9 10 11 |
# File 'lib/vkdonate/client.rb', line 8 def initialize(api_key) @api_key = api_key.to_s raise 'API key can not be empty' if @api_key.empty? end |