Class: Suitcase::Hotel::Session

Inherits:
Struct
  • Object
show all
Defined in:
lib/suitcase/hotel/session.rb

Overview

Public: Hold user session data. A simple Struct provided to be passed in

to some of the EAN methods.

Instance Attribute Summary collapse

Instance Attribute Details

#currency_codeObject

Returns the value of attribute currency_code

Returns:

  • (Object)

    the current value of currency_code



5
6
7
# File 'lib/suitcase/hotel/session.rb', line 5

def currency_code
  @currency_code
end

#idObject

Returns the value of attribute id

Returns:

  • (Object)

    the current value of id



5
6
7
# File 'lib/suitcase/hotel/session.rb', line 5

def id
  @id
end

#ip_addressObject

Returns the value of attribute ip_address

Returns:

  • (Object)

    the current value of ip_address



5
6
7
# File 'lib/suitcase/hotel/session.rb', line 5

def ip_address
  @ip_address
end

#localeObject

Returns the value of attribute locale

Returns:

  • (Object)

    the current value of locale



5
6
7
# File 'lib/suitcase/hotel/session.rb', line 5

def locale
  @locale
end

#user_agentObject

Returns the value of attribute user_agent

Returns:

  • (Object)

    the current value of user_agent



5
6
7
# File 'lib/suitcase/hotel/session.rb', line 5

def user_agent
  @user_agent
end