Class: GolfSwitch::GolfBookInfo

Inherits:
Object
  • Object
show all
Defined in:
lib/golf_switch/golf_book_info.rb

Direct Known Subclasses

CancelGolfResponse

Instance Attribute Summary collapse

Instance Method Summary collapse

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_noObject

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_currObject

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_idObject

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_nameObject

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_xidObject

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_chargedObject

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_currObject

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

#playersObject

Returns the value of attribute players.



4
5
6
# File 'lib/golf_switch/golf_book_info.rb', line 4

def players
  @players
end

#res_nameObject

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_cdObject

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_msgObject

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_dateObject

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_timeObject

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_chargedObject

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_creditedObject

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_feeObject

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_refundableObject

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_feeObject

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_chargedObject

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_creditedObject

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