Class: WCC::Arena::PersonAttributeQuery
- Inherits:
-
Object
- Object
- WCC::Arena::PersonAttributeQuery
- Defined in:
- lib/wcc/arena/person_attribute_query.rb
Instance Attribute Summary collapse
-
#person_id ⇒ Object
readonly
Returns the value of attribute person_id.
-
#session ⇒ Object
readonly
Returns the value of attribute session.
Instance Method Summary collapse
- #call ⇒ Object
-
#initialize(args = {}) ⇒ PersonAttributeQuery
constructor
A new instance of PersonAttributeQuery.
Constructor Details
#initialize(args = {}) ⇒ PersonAttributeQuery
Returns a new instance of PersonAttributeQuery.
5 6 7 8 |
# File 'lib/wcc/arena/person_attribute_query.rb', line 5 def initialize(args={}) @session = args.fetch(:session) { WCC::Arena.config.session } @person_id = args.fetch(:person_id) end |
Instance Attribute Details
#person_id ⇒ Object (readonly)
Returns the value of attribute person_id.
3 4 5 |
# File 'lib/wcc/arena/person_attribute_query.rb', line 3 def person_id @person_id end |
#session ⇒ Object (readonly)
Returns the value of attribute session.
3 4 5 |
# File 'lib/wcc/arena/person_attribute_query.rb', line 3 def session @session end |
Instance Method Details
#call ⇒ Object
10 11 12 13 14 |
# File 'lib/wcc/arena/person_attribute_query.rb', line 10 def call response_groups_xml.collect do |xml| PersonAttributeGroup.new(xml) end end |