Class: GolfSwitch::CoursePolicy
- Inherits:
-
Object
- Object
- GolfSwitch::CoursePolicy
- Defined in:
- lib/golf_switch/course_policy.rb
Instance Attribute Summary collapse
-
#desc ⇒ Object
Returns the value of attribute desc.
-
#qty ⇒ Object
Returns the value of attribute qty.
-
#type ⇒ Object
Returns the value of attribute type.
Instance Method Summary collapse
-
#initialize(attributes = {}) ⇒ CoursePolicy
constructor
A new instance of CoursePolicy.
Constructor Details
#initialize(attributes = {}) ⇒ CoursePolicy
Returns a new instance of CoursePolicy.
5 6 7 8 9 10 11 |
# File 'lib/golf_switch/course_policy.rb', line 5 def initialize(attributes={}) attributes.each do |name, value| begin send("#{name}=", value) end end end |
Instance Attribute Details
#desc ⇒ Object
Returns the value of attribute desc.
3 4 5 |
# File 'lib/golf_switch/course_policy.rb', line 3 def desc @desc end |
#qty ⇒ Object
Returns the value of attribute qty.
3 4 5 |
# File 'lib/golf_switch/course_policy.rb', line 3 def qty @qty end |
#type ⇒ Object
Returns the value of attribute type.
3 4 5 |
# File 'lib/golf_switch/course_policy.rb', line 3 def type @type end |