Class: WCC::Arena::SingleProfileQuery
- Inherits:
-
Object
- Object
- WCC::Arena::SingleProfileQuery
- Defined in:
- lib/wcc/arena/single_profile_query.rb
Instance Attribute Summary collapse
-
#profile_id ⇒ Object
readonly
Returns the value of attribute profile_id.
-
#session ⇒ Object
readonly
Returns the value of attribute session.
Instance Method Summary collapse
- #call ⇒ Object
-
#initialize(args = {}) ⇒ SingleProfileQuery
constructor
A new instance of SingleProfileQuery.
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_id ⇒ Object (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 |
#session ⇒ Object (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
#call ⇒ Object
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 |