Class: DiscountNetwork::Client
- Inherits:
-
Object
- Object
- DiscountNetwork::Client
- Defined in:
- lib/discountnetwork/client.rb
Instance Attribute Summary collapse
-
#attributes ⇒ Object
readonly
Returns the value of attribute attributes.
-
#end_point ⇒ Object
readonly
Returns the value of attribute end_point.
-
#http_method ⇒ Object
readonly
Returns the value of attribute http_method.
Instance Method Summary collapse
- #execute ⇒ Object
-
#initialize(http_method, end_point, attributes = {}) ⇒ Client
constructor
A new instance of Client.
Constructor Details
#initialize(http_method, end_point, attributes = {}) ⇒ Client
Returns a new instance of Client.
9 10 11 12 13 |
# File 'lib/discountnetwork/client.rb', line 9 def initialize(http_method, end_point, attributes = {}) @http_method = http_method @end_point = end_point @attributes = attributes end |
Instance Attribute Details
#attributes ⇒ Object (readonly)
Returns the value of attribute attributes.
7 8 9 |
# File 'lib/discountnetwork/client.rb', line 7 def attributes @attributes end |
#end_point ⇒ Object (readonly)
Returns the value of attribute end_point.
7 8 9 |
# File 'lib/discountnetwork/client.rb', line 7 def end_point @end_point end |
#http_method ⇒ Object (readonly)
Returns the value of attribute http_method.
7 8 9 |
# File 'lib/discountnetwork/client.rb', line 7 def http_method @http_method end |