Class: GolfSwitch::CancelGolfResponse

Inherits:
GolfBookInfo show all
Defined in:
lib/golf_switch/cancel_golf_response.rb

Instance Attribute Summary collapse

Attributes inherited from GolfBookInfo

#charge_curr, #course_id, #course_name, #course_xid, #curr_charged, #greens_fee_curr, #players, #res_name, #ret_cd, #ret_msg, #tee_date, #tee_time, #tot_cc_charged, #tot_greens_fee, #tot_non_refundable, #tot_trans_fee

Instance Method Summary collapse

Constructor Details

#initialize(attributes = {}) ⇒ CancelGolfResponse

Returns a new instance of CancelGolfResponse.



6
7
8
9
10
11
12
13
14
# File 'lib/golf_switch/cancel_golf_response.rb', line 6

def initialize(attributes={})
  attributes.each do |name, value|
    begin
      send("#{name}=", value)
    rescue
      puts "Add #{name} as accessor in Cancel Golf Response"
    end
  end
end

Instance Attribute Details

#cancellation_noObject

Returns the value of attribute cancellation_no.



3
4
5
# File 'lib/golf_switch/cancel_golf_response.rb', line 3

def cancellation_no
  @cancellation_no
end

#confirmation_noObject

Returns the value of attribute confirmation_no.



3
4
5
# File 'lib/golf_switch/cancel_golf_response.rb', line 3

def confirmation_no
  @confirmation_no
end

#tot_cc_creditedObject

Returns the value of attribute tot_cc_credited.



3
4
5
# File 'lib/golf_switch/cancel_golf_response.rb', line 3

def tot_cc_credited
  @tot_cc_credited
end

#tot_voucher_chargedObject

Returns the value of attribute tot_voucher_charged.



3
4
5
# File 'lib/golf_switch/cancel_golf_response.rb', line 3

def tot_voucher_charged
  @tot_voucher_charged
end

#tot_voucher_creditedObject

Returns the value of attribute tot_voucher_credited.



3
4
5
# File 'lib/golf_switch/cancel_golf_response.rb', line 3

def tot_voucher_credited
  @tot_voucher_credited
end