Class: Votifier::Vote
- Inherits:
-
Object
- Object
- Votifier::Vote
- Defined in:
- lib/votifier/vote.rb
Instance Attribute Summary collapse
-
#address ⇒ Object
Returns the value of attribute address.
-
#player ⇒ Object
Returns the value of attribute player.
-
#service ⇒ Object
Returns the value of attribute service.
-
#time ⇒ Object
Returns the value of attribute time.
Instance Method Summary collapse
-
#initialize(service, player, address, time) ⇒ Vote
constructor
A new instance of Vote.
Constructor Details
#initialize(service, player, address, time) ⇒ Vote
Returns a new instance of Vote.
6 7 8 9 10 11 |
# File 'lib/votifier/vote.rb', line 6 def initialize(service, player, address, time) @service = service @player = player @address = address @time = time end |
Instance Attribute Details
#address ⇒ Object
Returns the value of attribute address.
4 5 6 |
# File 'lib/votifier/vote.rb', line 4 def address @address end |
#player ⇒ Object
Returns the value of attribute player.
4 5 6 |
# File 'lib/votifier/vote.rb', line 4 def player @player end |
#service ⇒ Object
Returns the value of attribute service.
4 5 6 |
# File 'lib/votifier/vote.rb', line 4 def service @service end |
#time ⇒ Object
Returns the value of attribute time.
4 5 6 |
# File 'lib/votifier/vote.rb', line 4 def time @time end |