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

Class Method Summary collapse

Class Attribute Details

.api_keyObject

Returns the value of attribute api_key.



25
26
27
# File 'lib/expedia.rb', line 25

def api_key
  @api_key
end

.cidObject

Returns the value of attribute cid.



25
26
27
# File 'lib/expedia.rb', line 25

def cid
  @cid
end

.currency_codeObject

Returns the value of attribute currency_code.



25
26
27
# File 'lib/expedia.rb', line 25

def currency_code
  @currency_code
end

.formatObject

Returns the value of attribute format.



25
26
27
# File 'lib/expedia.rb', line 25

def format
  @format
end

.localeObject

Returns the value of attribute locale.



25
26
27
# File 'lib/expedia.rb', line 25

def locale
  @locale
end

.minor_revObject

Returns the value of attribute minor_rev.



25
26
27
# File 'lib/expedia.rb', line 25

def minor_rev
  @minor_rev
end

.open_timeoutObject

Returns the value of attribute open_timeout.



25
26
27
# File 'lib/expedia.rb', line 25

def open_timeout
  @open_timeout
end

.shared_secretObject

Returns the value of attribute shared_secret.



25
26
27
# File 'lib/expedia.rb', line 25

def shared_secret
  @shared_secret
end

.timeoutObject

Returns the value of attribute timeout.



25
26
27
# File 'lib/expedia.rb', line 25

def timeout
  @timeout
end

Class Method Details

.root_pathObject



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.

Yields:

  • (_self)

Yield Parameters:

  • _self (Expedia)

    the object that the method was called on



30
31
32
# File 'lib/expedia.rb', line 30

def setup
  yield self
end