Class: ClarkKent::ResourceOption
- Inherits:
-
Object
- Object
- ClarkKent::ResourceOption
- Defined in:
- app/models/clark_kent/resource_option.rb
Instance Attribute Summary collapse
-
#id ⇒ Object
Returns the value of attribute id.
-
#name ⇒ Object
Returns the value of attribute name.
Instance Method Summary collapse
-
#initialize(params = {}) ⇒ ResourceOption
constructor
A new instance of ResourceOption.
Constructor Details
#initialize(params = {}) ⇒ ResourceOption
Returns a new instance of ResourceOption.
5 6 7 |
# File 'app/models/clark_kent/resource_option.rb', line 5 def initialize params = {} params.each { |key, value| send "#{key}=", value } end |
Instance Attribute Details
#id ⇒ Object
Returns the value of attribute id.
3 4 5 |
# File 'app/models/clark_kent/resource_option.rb', line 3 def id @id end |
#name ⇒ Object
Returns the value of attribute name.
3 4 5 |
# File 'app/models/clark_kent/resource_option.rb', line 3 def name @name end |