Class: Agoravoting::Proposal
- Inherits:
-
Object
- Object
- Agoravoting::Proposal
- Defined in:
- lib/agoravoting/proposal.rb
Instance Attribute Summary collapse
-
#description ⇒ Object
Returns the value of attribute description.
-
#title ⇒ Object
Returns the value of attribute title.
Instance Method Summary collapse
-
#initialize(attributes = {}) ⇒ Proposal
constructor
A new instance of Proposal.
Constructor Details
#initialize(attributes = {}) ⇒ Proposal
Returns a new instance of Proposal.
5 6 7 8 |
# File 'lib/agoravoting/proposal.rb', line 5 def initialize(attributes = {}) @title = attributes[:title] @description = attributes[:description] end |
Instance Attribute Details
#description ⇒ Object
Returns the value of attribute description.
3 4 5 |
# File 'lib/agoravoting/proposal.rb', line 3 def description @description end |
#title ⇒ Object
Returns the value of attribute title.
3 4 5 |
# File 'lib/agoravoting/proposal.rb', line 3 def title @title end |