Class: Mkmapi::Session

Inherits:
Object
  • Object
show all
Defined in:
lib/mkmapi/session.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#accountObject (readonly)

Returns the value of attribute account.



4
5
6
# File 'lib/mkmapi/session.rb', line 4

def 
  @account
end

#agentObject (readonly)

Returns the value of attribute agent.



4
5
6
# File 'lib/mkmapi/session.rb', line 4

def agent
  @agent
end

#marketplaceObject (readonly)

Returns the value of attribute marketplace.



4
5
6
# File 'lib/mkmapi/session.rb', line 4

def marketplace
  @marketplace
end