Class: WCC::Arena::ProfileMemberQuery
- Inherits:
-
Object
- Object
- WCC::Arena::ProfileMemberQuery
- Defined in:
- lib/wcc/arena/profile_member_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 = {}) ⇒ ProfileMemberQuery
constructor
A new instance of ProfileMemberQuery.
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_id ⇒ Object (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 |
#session ⇒ Object (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
#call ⇒ Object
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 |