Module: Expedia
- Defined in:
- lib/expedia.rb,
lib/expedia/api.rb,
lib/expedia/utils.rb,
lib/expedia/errors.rb,
lib/expedia/railtie.rb,
lib/expedia/version.rb,
lib/expedia/http_service.rb,
lib/expedia/http_service/response.rb,
lib/generators/expedia/initialize_generator.rb
Defined Under Namespace
Modules: HTTPService, Utils Classes: APIError, Api, AuthCredentialsError, ExpediaError, InitializeGenerator, Railtie
Constant Summary collapse
- VERSION =
"0.0.4"
Class Attribute Summary collapse
-
.api_key ⇒ Object
Returns the value of attribute api_key.
-
.cid ⇒ Object
Returns the value of attribute cid.
-
.currency_code ⇒ Object
Returns the value of attribute currency_code.
-
.format ⇒ Object
Returns the value of attribute format.
-
.locale ⇒ Object
Returns the value of attribute locale.
-
.minor_rev ⇒ Object
Returns the value of attribute minor_rev.
-
.open_timeout ⇒ Object
Returns the value of attribute open_timeout.
-
.shared_secret ⇒ Object
Returns the value of attribute shared_secret.
-
.timeout ⇒ Object
Returns the value of attribute timeout.
Class Method Summary collapse
- .root_path ⇒ Object
-
.setup {|_self| ... } ⇒ Object
Default way to setup Expedia.
Class Attribute Details
.api_key ⇒ Object
Returns the value of attribute api_key.
25 26 27 |
# File 'lib/expedia.rb', line 25 def api_key @api_key end |
.cid ⇒ Object
Returns the value of attribute cid.
25 26 27 |
# File 'lib/expedia.rb', line 25 def cid @cid end |
.currency_code ⇒ Object
Returns the value of attribute currency_code.
25 26 27 |
# File 'lib/expedia.rb', line 25 def currency_code @currency_code end |
.format ⇒ Object
Returns the value of attribute format.
25 26 27 |
# File 'lib/expedia.rb', line 25 def format @format end |
.locale ⇒ Object
Returns the value of attribute locale.
25 26 27 |
# File 'lib/expedia.rb', line 25 def locale @locale end |
.minor_rev ⇒ Object
Returns the value of attribute minor_rev.
25 26 27 |
# File 'lib/expedia.rb', line 25 def minor_rev @minor_rev end |
.open_timeout ⇒ Object
Returns the value of attribute open_timeout.
25 26 27 |
# File 'lib/expedia.rb', line 25 def open_timeout @open_timeout end |
.shared_secret ⇒ Object
Returns the value of attribute shared_secret.
25 26 27 |
# File 'lib/expedia.rb', line 25 def shared_secret @shared_secret end |
.timeout ⇒ Object
Returns the value of attribute timeout.
25 26 27 |
# File 'lib/expedia.rb', line 25 def timeout @timeout end |
Class Method Details
.root_path ⇒ Object
34 35 36 |
# File 'lib/expedia.rb', line 34 def root_path Gem::Specification.find_by_name("expedia").gem_dir end |
.setup {|_self| ... } ⇒ Object
Default way to setup Expedia. Run generator to create a fresh initializer with all configuration values.
30 31 32 |
# File 'lib/expedia.rb', line 30 def setup yield self end |