Class: GolfSwitch::CoursePolicyResponse

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

Instance Attribute Summary collapse

Instance Method Summary collapse

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_policyObject

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_policiesObject

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

#noteObject

Returns the value of attribute note.



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

def note
  @note
end

#rate_policyObject

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_cdObject

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_msgObject

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