Class: Votifier::Vote

Inherits:
Object
  • Object
show all
Defined in:
lib/votifier/vote.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#addressObject

Returns the value of attribute address.



4
5
6
# File 'lib/votifier/vote.rb', line 4

def address
  @address
end

#playerObject

Returns the value of attribute player.



4
5
6
# File 'lib/votifier/vote.rb', line 4

def player
  @player
end

#serviceObject

Returns the value of attribute service.



4
5
6
# File 'lib/votifier/vote.rb', line 4

def service
  @service
end

#timeObject

Returns the value of attribute time.



4
5
6
# File 'lib/votifier/vote.rb', line 4

def time
  @time
end