Class: IfaxappApi::Client

Inherits:
Object
  • Object
show all
Defined in:
lib/ifaxapp_api/client.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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_keyObject (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_urlObject (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