Class: Mkmapi::Session
- Inherits:
-
Object
- Object
- Mkmapi::Session
- Defined in:
- lib/mkmapi/session.rb
Instance Attribute Summary collapse
-
#account ⇒ Object
readonly
Returns the value of attribute account.
-
#agent ⇒ Object
readonly
Returns the value of attribute agent.
-
#marketplace ⇒ Object
readonly
Returns the value of attribute marketplace.
Instance Method Summary collapse
-
#initialize(connection, authentication) ⇒ Session
constructor
A new instance of Session.
Constructor Details
#initialize(connection, authentication) ⇒ Session
Returns a new instance of Session.
6 7 8 9 |
# File 'lib/mkmapi/session.rb', line 6 def initialize(connection, authentication) @agent = Agent.new(connection, authentication) @marketplace = Marketplace.new(@agent) end |
Instance Attribute Details
#account ⇒ Object (readonly)
Returns the value of attribute account.
4 5 6 |
# File 'lib/mkmapi/session.rb', line 4 def account @account end |
#agent ⇒ Object (readonly)
Returns the value of attribute agent.
4 5 6 |
# File 'lib/mkmapi/session.rb', line 4 def agent @agent end |
#marketplace ⇒ Object (readonly)
Returns the value of attribute marketplace.
4 5 6 |
# File 'lib/mkmapi/session.rb', line 4 def marketplace @marketplace end |