Class: Wlc::Api
- Inherits:
-
Object
- Object
- Wlc::Api
- Defined in:
- lib/wlc/api.rb
Instance Attribute Summary collapse
-
#client ⇒ Object
readonly
Returns the value of attribute client.
Instance Method Summary collapse
-
#initialize(client) ⇒ Api
constructor
A new instance of Api.
- #order ⇒ Object
- #products ⇒ Object
Constructor Details
#initialize(client) ⇒ Api
Returns a new instance of Api.
5 6 7 |
# File 'lib/wlc/api.rb', line 5 def initialize(client) @client = client end |
Instance Attribute Details
#client ⇒ Object (readonly)
Returns the value of attribute client.
3 4 5 |
# File 'lib/wlc/api.rb', line 3 def client @client end |
Instance Method Details
#order ⇒ Object
13 14 15 |
# File 'lib/wlc/api.rb', line 13 def order Wlc::Resources::Order.new(client) end |
#products ⇒ Object
9 10 11 |
# File 'lib/wlc/api.rb', line 9 def products Wlc::Resources::Product.new(client) end |