Class: Passninja::Client
- Inherits:
-
Object
- Object
- Passninja::Client
- Defined in:
- lib/passninja.rb
Instance Method Summary collapse
-
#initialize(account_id, api_key) ⇒ Client
constructor
A new instance of Client.
- #pass_templates ⇒ Object
- #passes ⇒ Object
Constructor Details
#initialize(account_id, api_key) ⇒ Client
Returns a new instance of Client.
6 7 8 9 |
# File 'lib/passninja.rb', line 6 def initialize(account_id, api_key) @account_id = account_id @api_key = api_key end |
Instance Method Details
#pass_templates ⇒ Object
11 12 13 |
# File 'lib/passninja.rb', line 11 def pass_templates PassTemplates.new(@account_id, @api_key) end |
#passes ⇒ Object
15 16 17 |
# File 'lib/passninja.rb', line 15 def passes Passes.new(@account_id, @api_key) end |