Class: GolfSwitch::CoursePolicy

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

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#descObject

Returns the value of attribute desc.



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

def desc
  @desc
end

#qtyObject

Returns the value of attribute qty.



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

def qty
  @qty
end

#typeObject

Returns the value of attribute type.



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

def type
  @type
end