Class: WCC::Arena::ProfileMemberQuery

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(args = {}) ⇒ ProfileMemberQuery

Returns a new instance of ProfileMemberQuery.



6
7
8
9
# File 'lib/wcc/arena/profile_member_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/profile_member_query.rb', line 4

def profile_id
  @profile_id
end

#sessionObject (readonly)

Returns the value of attribute session.



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

def session
  @session
end

Instance Method Details

#callObject



11
12
13
14
15
# File 'lib/wcc/arena/profile_member_query.rb', line 11

def call
  members_xml.collect do |member_xml|
    ProfileMember.new(member_xml)
  end
end