Class: Bambora::Rest::Client
- Inherits:
-
Object
- Object
- Bambora::Rest::Client
- Defined in:
- lib/bambora/rest/client.rb
Overview
A basic client for making REST requests.
Direct Known Subclasses
BatchPaymentFileUploadClient, JSONClient, WWWFormClient, XMLClient
Instance Attribute Summary collapse
-
#base_url ⇒ Object
readonly
Returns the value of attribute base_url.
-
#merchant_id ⇒ Object
readonly
Returns the value of attribute merchant_id.
-
#sub_merchant_id ⇒ Object
readonly
Returns the value of attribute sub_merchant_id.
Instance Method Summary collapse
-
#initialize(options = {}) {|_self| ... } ⇒ Client
constructor
Initialze a client that makes REST requests.
Constructor Details
#initialize(options = {}) {|_self| ... } ⇒ Client
Initialze a client that makes REST requests.
21 22 23 24 25 26 |
# File 'lib/bambora/rest/client.rb', line 21 def initialize( = {}) .each do |key, value| instance_variable_set("@#{key}", value) end yield(self) if block_given? end |
Instance Attribute Details
#base_url ⇒ Object (readonly)
Returns the value of attribute base_url.
11 12 13 |
# File 'lib/bambora/rest/client.rb', line 11 def base_url @base_url end |
#merchant_id ⇒ Object (readonly)
Returns the value of attribute merchant_id.
11 12 13 |
# File 'lib/bambora/rest/client.rb', line 11 def merchant_id @merchant_id end |
#sub_merchant_id ⇒ Object (readonly)
Returns the value of attribute sub_merchant_id.
11 12 13 |
# File 'lib/bambora/rest/client.rb', line 11 def sub_merchant_id @sub_merchant_id end |