Class: Agoravoting::Proposal

Inherits:
Object
  • Object
show all
Defined in:
lib/agoravoting/proposal.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#descriptionObject

Returns the value of attribute description.



3
4
5
# File 'lib/agoravoting/proposal.rb', line 3

def description
  @description
end

#titleObject

Returns the value of attribute title.



3
4
5
# File 'lib/agoravoting/proposal.rb', line 3

def title
  @title
end