Class: Chargify2::Client
- Inherits:
-
Object
- Object
- Chargify2::Client
- Defined in:
- lib/chargify2/client.rb
Constant Summary collapse
- BASE_URI =
"https://api.chargify.com/api/v2"
Instance Attribute Summary collapse
-
#api_id ⇒ Object
readonly
Returns the value of attribute api_id.
-
#api_password ⇒ Object
readonly
Returns the value of attribute api_password.
-
#api_secret ⇒ Object
readonly
Returns the value of attribute api_secret.
-
#base_uri ⇒ Object
readonly
Returns the value of attribute base_uri.
Instance Method Summary collapse
- #calls ⇒ Object
- #direct ⇒ Object
-
#initialize(args = {}) ⇒ Client
constructor
A new instance of Client.
Constructor Details
#initialize(args = {}) ⇒ Client
Returns a new instance of Client.
20 21 22 23 24 25 26 27 |
# File 'lib/chargify2/client.rb', line 20 def initialize(args = {}) = args.recursive_symbolize_keys @api_id = [:api_id] @api_password = [:api_password] @api_secret = [:api_secret] @base_uri = [:base_uri] || BASE_URI end |
Instance Attribute Details
#api_id ⇒ Object (readonly)
Returns the value of attribute api_id.
15 16 17 |
# File 'lib/chargify2/client.rb', line 15 def api_id @api_id end |
#api_password ⇒ Object (readonly)
Returns the value of attribute api_password.
16 17 18 |
# File 'lib/chargify2/client.rb', line 16 def api_password @api_password end |
#api_secret ⇒ Object (readonly)
Returns the value of attribute api_secret.
17 18 19 |
# File 'lib/chargify2/client.rb', line 17 def api_secret @api_secret end |
#base_uri ⇒ Object (readonly)
Returns the value of attribute base_uri.
18 19 20 |
# File 'lib/chargify2/client.rb', line 18 def base_uri @base_uri end |