Class: Elong::Client
- Inherits:
-
Object
- Object
- Elong::Client
- Defined in:
- lib/elong/client.rb
Overview
Elong Client Class
Instance Attribute Summary collapse
-
#request ⇒ Object
readonly
Returns the value of attribute request.
Instance Method Summary collapse
-
#common ⇒ Elong::API::Common::Core
The Common section.
-
#ghotel ⇒ Elong::API::GHotel::Core
The Globel Hotel section.
-
#hotel ⇒ Elong::API::Hotel::Core
The Hotel section.
-
#initialize(user, appKey, secretKey, opts = {}) ⇒ Elong::Client
constructor
Instantiate a new Elong API client using the user, appKey and secretKey registered to your application.
Constructor Details
#initialize(user, appKey, secretKey, opts = {}) ⇒ Elong::Client
Instantiate a new Elong API client using the user, appKey and secretKey registered to your application
18 19 20 |
# File 'lib/elong/client.rb', line 18 def initialize(user, appKey, secretKey, opts={}) @request = Elong::Request.new(user, appKey, secretKey, opts) end |
Instance Attribute Details
#request ⇒ Object (readonly)
Returns the value of attribute request.
4 5 6 |
# File 'lib/elong/client.rb', line 4 def request @request end |
Instance Method Details
#common ⇒ Elong::API::Common::Core
The Common section
39 40 41 |
# File 'lib/elong/client.rb', line 39 def common @common ||= Elong::API::Common::Core.new(self) end |