Class: GolfSwitch::GolfBookInfo
- Inherits:
-
Object
- Object
- GolfSwitch::GolfBookInfo
- Defined in:
- lib/golf_switch/golf_book_info.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#cancellation_no ⇒ Object
Returns the value of attribute cancellation_no.
-
#charge_curr ⇒ Object
Returns the value of attribute charge_curr.
-
#course_id ⇒ Object
Returns the value of attribute course_id.
-
#course_name ⇒ Object
Returns the value of attribute course_name.
-
#course_xid ⇒ Object
Returns the value of attribute course_xid.
-
#curr_charged ⇒ Object
Returns the value of attribute curr_charged.
-
#greens_fee_curr ⇒ Object
Returns the value of attribute greens_fee_curr.
-
#players ⇒ Object
Returns the value of attribute players.
-
#res_name ⇒ Object
Returns the value of attribute res_name.
-
#ret_cd ⇒ Object
Returns the value of attribute ret_cd.
-
#ret_msg ⇒ Object
Returns the value of attribute ret_msg.
-
#tee_date ⇒ Object
Returns the value of attribute tee_date.
-
#tee_time ⇒ Object
Returns the value of attribute tee_time.
-
#tot_cc_charged ⇒ Object
Returns the value of attribute tot_cc_charged.
-
#tot_cc_credited ⇒ Object
Returns the value of attribute tot_cc_credited.
-
#tot_greens_fee ⇒ Object
Returns the value of attribute tot_greens_fee.
-
#tot_non_refundable ⇒ Object
Returns the value of attribute tot_non_refundable.
-
#tot_trans_fee ⇒ Object
Returns the value of attribute tot_trans_fee.
-
#tot_voucher_charged ⇒ Object
Returns the value of attribute tot_voucher_charged.
-
#tot_voucher_credited ⇒ Object
Returns the value of attribute tot_voucher_credited.
Instance Method Summary collapse
-
#initialize(attributes = {}) ⇒ GolfBookInfo
constructor
A new instance of GolfBookInfo.
Constructor Details
#initialize(attributes = {}) ⇒ GolfBookInfo
Returns a new instance of GolfBookInfo.
7 8 9 10 11 12 13 14 15 |
# File 'lib/golf_switch/golf_book_info.rb', line 7 def initialize(attributes={}) attributes.each do |name, value| begin send("#{name}=", value) rescue puts "Add #{name} as accessor in Golf Book Response" end end end |
Instance Attribute Details
#cancellation_no ⇒ Object
Returns the value of attribute cancellation_no.
6 7 8 |
# File 'lib/golf_switch/golf_book_info.rb', line 6 def cancellation_no @cancellation_no end |
#charge_curr ⇒ Object
Returns the value of attribute charge_curr.
5 6 7 |
# File 'lib/golf_switch/golf_book_info.rb', line 5 def charge_curr @charge_curr end |
#course_id ⇒ Object
Returns the value of attribute course_id.
3 4 5 |
# File 'lib/golf_switch/golf_book_info.rb', line 3 def course_id @course_id end |
#course_name ⇒ Object
Returns the value of attribute course_name.
3 4 5 |
# File 'lib/golf_switch/golf_book_info.rb', line 3 def course_name @course_name end |
#course_xid ⇒ Object
Returns the value of attribute course_xid.
3 4 5 |
# File 'lib/golf_switch/golf_book_info.rb', line 3 def course_xid @course_xid end |
#curr_charged ⇒ Object
Returns the value of attribute curr_charged.
5 6 7 |
# File 'lib/golf_switch/golf_book_info.rb', line 5 def curr_charged @curr_charged end |
#greens_fee_curr ⇒ Object
Returns the value of attribute greens_fee_curr.
4 5 6 |
# File 'lib/golf_switch/golf_book_info.rb', line 4 def greens_fee_curr @greens_fee_curr end |
#players ⇒ Object
Returns the value of attribute players.
4 5 6 |
# File 'lib/golf_switch/golf_book_info.rb', line 4 def players @players end |
#res_name ⇒ Object
Returns the value of attribute res_name.
3 4 5 |
# File 'lib/golf_switch/golf_book_info.rb', line 3 def res_name @res_name end |
#ret_cd ⇒ Object
Returns the value of attribute ret_cd.
3 4 5 |
# File 'lib/golf_switch/golf_book_info.rb', line 3 def ret_cd @ret_cd end |
#ret_msg ⇒ Object
Returns the value of attribute ret_msg.
3 4 5 |
# File 'lib/golf_switch/golf_book_info.rb', line 3 def ret_msg @ret_msg end |
#tee_date ⇒ Object
Returns the value of attribute tee_date.
3 4 5 |
# File 'lib/golf_switch/golf_book_info.rb', line 3 def tee_date @tee_date end |
#tee_time ⇒ Object
Returns the value of attribute tee_time.
4 5 6 |
# File 'lib/golf_switch/golf_book_info.rb', line 4 def tee_time @tee_time end |
#tot_cc_charged ⇒ Object
Returns the value of attribute tot_cc_charged.
5 6 7 |
# File 'lib/golf_switch/golf_book_info.rb', line 5 def tot_cc_charged @tot_cc_charged end |
#tot_cc_credited ⇒ Object
Returns the value of attribute tot_cc_credited.
6 7 8 |
# File 'lib/golf_switch/golf_book_info.rb', line 6 def tot_cc_credited @tot_cc_credited end |
#tot_greens_fee ⇒ Object
Returns the value of attribute tot_greens_fee.
4 5 6 |
# File 'lib/golf_switch/golf_book_info.rb', line 4 def tot_greens_fee @tot_greens_fee end |
#tot_non_refundable ⇒ Object
Returns the value of attribute tot_non_refundable.
5 6 7 |
# File 'lib/golf_switch/golf_book_info.rb', line 5 def tot_non_refundable @tot_non_refundable end |
#tot_trans_fee ⇒ Object
Returns the value of attribute tot_trans_fee.
5 6 7 |
# File 'lib/golf_switch/golf_book_info.rb', line 5 def tot_trans_fee @tot_trans_fee end |
#tot_voucher_charged ⇒ Object
Returns the value of attribute tot_voucher_charged.
6 7 8 |
# File 'lib/golf_switch/golf_book_info.rb', line 6 def tot_voucher_charged @tot_voucher_charged end |
#tot_voucher_credited ⇒ Object
Returns the value of attribute tot_voucher_credited.
6 7 8 |
# File 'lib/golf_switch/golf_book_info.rb', line 6 def tot_voucher_credited @tot_voucher_credited end |