Class: IfaxappApi::Client
- Inherits:
-
Object
- Object
- IfaxappApi::Client
- Defined in:
- lib/ifaxapp_api/client.rb
Instance Attribute Summary collapse
-
#api_key ⇒ Object
readonly
Returns the value of attribute api_key.
-
#base_url ⇒ Object
readonly
Returns the value of attribute base_url.
Instance Method Summary collapse
- #fax(params = {}) ⇒ Object
-
#initialize(api_key:) ⇒ Client
constructor
A new instance of Client.
Constructor Details
#initialize(api_key:) ⇒ Client
Returns a new instance of Client.
10 11 12 13 |
# File 'lib/ifaxapp_api/client.rb', line 10 def initialize(api_key: ) @api_key = api_key @base_url = API_URL end |
Instance Attribute Details
#api_key ⇒ Object (readonly)
Returns the value of attribute api_key.
8 9 10 |
# File 'lib/ifaxapp_api/client.rb', line 8 def api_key @api_key end |
#base_url ⇒ Object (readonly)
Returns the value of attribute base_url.
8 9 10 |
# File 'lib/ifaxapp_api/client.rb', line 8 def base_url @base_url end |
Instance Method Details
#fax(params = {}) ⇒ Object
15 16 17 |
# File 'lib/ifaxapp_api/client.rb', line 15 def fax(params = {}) @fax ||= Fax.new(self) end |