Class: WCC::Arena::ProfileMemberSave
- Inherits:
-
Object
- Object
- WCC::Arena::ProfileMemberSave
- Defined in:
- lib/wcc/arena/profile_member_save.rb
Instance Attribute Summary collapse
-
#new_record ⇒ Object
readonly
Returns the value of attribute new_record.
-
#person_id ⇒ Object
readonly
Returns the value of attribute person_id.
-
#profile_id ⇒ Object
readonly
Returns the value of attribute profile_id.
-
#save_data ⇒ Object
readonly
Returns the value of attribute save_data.
-
#session ⇒ Object
readonly
Returns the value of attribute session.
Instance Method Summary collapse
- #call ⇒ Object
-
#initialize(args = {}) ⇒ ProfileMemberSave
constructor
A new instance of ProfileMemberSave.
Constructor Details
#initialize(args = {}) ⇒ ProfileMemberSave
Returns a new instance of ProfileMemberSave.
8 9 10 11 12 13 14 |
# File 'lib/wcc/arena/profile_member_save.rb', line 8 def initialize(args={}) @session = args.fetch(:session) { WCC::Arena.config.session } @profile_id = args.fetch(:profile_id) @person_id = args.fetch(:person_id) @save_data = args.fetch(:save_data) { ProfileMemberSaveData.new } @new_record = args.fetch(:new_record) { true } end |
Instance Attribute Details
#new_record ⇒ Object (readonly)
Returns the value of attribute new_record.
6 7 8 |
# File 'lib/wcc/arena/profile_member_save.rb', line 6 def new_record @new_record end |
#person_id ⇒ Object (readonly)
Returns the value of attribute person_id.
5 6 7 |
# File 'lib/wcc/arena/profile_member_save.rb', line 5 def person_id @person_id end |
#profile_id ⇒ Object (readonly)
Returns the value of attribute profile_id.
5 6 7 |
# File 'lib/wcc/arena/profile_member_save.rb', line 5 def profile_id @profile_id end |
#save_data ⇒ Object (readonly)
Returns the value of attribute save_data.
6 7 8 |
# File 'lib/wcc/arena/profile_member_save.rb', line 6 def save_data @save_data end |
#session ⇒ Object (readonly)
Returns the value of attribute session.
4 5 6 |
# File 'lib/wcc/arena/profile_member_save.rb', line 4 def session @session end |
Instance Method Details
#call ⇒ Object
16 17 18 |
# File 'lib/wcc/arena/profile_member_save.rb', line 16 def call ModifyResult.new(result_xml) end |