Class: FaxplusApi::Client
- Inherits:
-
Object
- Object
- FaxplusApi::Client
- Defined in:
- lib/faxplus_api/client.rb
Instance Attribute Summary collapse
-
#access_token ⇒ Object
readonly
Returns the value of attribute access_token.
-
#base_url ⇒ Object
readonly
Returns the value of attribute base_url.
Instance Method Summary collapse
- #account(params = {}) ⇒ Object
- #fax(params = {}) ⇒ Object
- #file(params = {}) ⇒ Object
-
#initialize(access_token: ENV['FAXPLUS_PAT_TOKEN']) ⇒ Client
constructor
A new instance of Client.
- #number(params = {}) ⇒ Object
- #outbox(params = {}) ⇒ Object
- #webhook(params = {}) ⇒ Object
Constructor Details
Instance Attribute Details
#access_token ⇒ Object (readonly)
Returns the value of attribute access_token.
13 14 15 |
# File 'lib/faxplus_api/client.rb', line 13 def access_token @access_token end |
#base_url ⇒ Object (readonly)
Returns the value of attribute base_url.
13 14 15 |
# File 'lib/faxplus_api/client.rb', line 13 def base_url @base_url end |
Instance Method Details
#account(params = {}) ⇒ Object
24 25 26 |
# File 'lib/faxplus_api/client.rb', line 24 def account(params = {}) @account ||= Account.new(self) end |
#fax(params = {}) ⇒ Object
28 29 30 |
# File 'lib/faxplus_api/client.rb', line 28 def fax(params = {}) @fax ||= Fax.new(self) end |
#file(params = {}) ⇒ Object
20 21 22 |
# File 'lib/faxplus_api/client.rb', line 20 def file(params = {}) @file ||= File.new(self) end |
#number(params = {}) ⇒ Object
32 33 34 |
# File 'lib/faxplus_api/client.rb', line 32 def number(params = {}) @number ||= Number.new(self) end |