Class: WCC::Arena::SingleProfileQuery

Inherits:
Object
  • Object
show all
Defined in:
lib/wcc/arena/single_profile_query.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(args = {}) ⇒ SingleProfileQuery

Returns a new instance of SingleProfileQuery.



6
7
8
9
# File 'lib/wcc/arena/single_profile_query.rb', line 6

def initialize(args={})
  @session = args.fetch(:session) { WCC::Arena.config.session }
  @profile_id = args.fetch(:profile_id)
end

Instance Attribute Details

#profile_idObject (readonly)

Returns the value of attribute profile_id.



4
5
6
# File 'lib/wcc/arena/single_profile_query.rb', line 4

def profile_id
  @profile_id
end

#sessionObject (readonly)

Returns the value of attribute session.



3
4
5
# File 'lib/wcc/arena/single_profile_query.rb', line 3

def session
  @session
end

Instance Method Details

#callObject



11
12
13
# File 'lib/wcc/arena/single_profile_query.rb', line 11

def call
  Profile.new(response_profile_xml) if response_profile_xml
end