Class: GolfSwitch::CoursePolicyResponse
- Inherits:
-
Object
- Object
- GolfSwitch::CoursePolicyResponse
- Defined in:
- lib/golf_switch/course_policy_response.rb
Instance Attribute Summary collapse
-
#cxl_policy ⇒ Object
Returns the value of attribute cxl_policy.
-
#misc_policies ⇒ Object
Returns the value of attribute misc_policies.
-
#note ⇒ Object
Returns the value of attribute note.
-
#rate_policy ⇒ Object
Returns the value of attribute rate_policy.
-
#ret_cd ⇒ Object
Returns the value of attribute ret_cd.
-
#ret_msg ⇒ Object
Returns the value of attribute ret_msg.
Instance Method Summary collapse
-
#initialize(attributes = {}) ⇒ CoursePolicyResponse
constructor
A new instance of CoursePolicyResponse.
Constructor Details
#initialize(attributes = {}) ⇒ CoursePolicyResponse
Returns a new instance of CoursePolicyResponse.
4 5 6 7 8 9 10 11 12 13 14 15 16 |
# File 'lib/golf_switch/course_policy_response.rb', line 4 def initialize(attributes={}) attributes.each do |name, value| begin if name.to_s =="cxl_policy" @cxl_policy = GolfSwitch::CoursePolicy.new(value) else send("#{name}=", value) end rescue puts "Add #{name} is accessor in course policy response" end end end |
Instance Attribute Details
#cxl_policy ⇒ Object
Returns the value of attribute cxl_policy.
3 4 5 |
# File 'lib/golf_switch/course_policy_response.rb', line 3 def cxl_policy @cxl_policy end |
#misc_policies ⇒ Object
Returns the value of attribute misc_policies.
3 4 5 |
# File 'lib/golf_switch/course_policy_response.rb', line 3 def misc_policies @misc_policies end |
#note ⇒ Object
Returns the value of attribute note.
3 4 5 |
# File 'lib/golf_switch/course_policy_response.rb', line 3 def note @note end |
#rate_policy ⇒ Object
Returns the value of attribute rate_policy.
3 4 5 |
# File 'lib/golf_switch/course_policy_response.rb', line 3 def rate_policy @rate_policy end |
#ret_cd ⇒ Object
Returns the value of attribute ret_cd.
3 4 5 |
# File 'lib/golf_switch/course_policy_response.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/course_policy_response.rb', line 3 def ret_msg @ret_msg end |