Class: WCC::Arena::PersonAttributeQuery

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

Instance Attribute Summary collapse

Instance Method Summary collapse

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_idObject (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

#sessionObject (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

#callObject



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