Class: WCC::Arena::ProfileMemberSave

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

Instance Attribute Summary collapse

Instance Method Summary collapse

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

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

#callObject



16
17
18
# File 'lib/wcc/arena/profile_member_save.rb', line 16

def call
  ModifyResult.new(result_xml)
end