Class: Evinrude::Message::VoteReply

Inherits:
Evinrude::Message show all
Defined in:
lib/evinrude/message/vote_reply.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from Evinrude::Message

classes, parse, permitted_classes

Constructor Details

#initialize(term:, vote_granted:) ⇒ VoteReply

Returns a new instance of VoteReply.



8
9
10
# File 'lib/evinrude/message/vote_reply.rb', line 8

def initialize(term:, vote_granted:)
  @term, @vote_granted = term, vote_granted
end

Instance Attribute Details

#termObject (readonly)

Returns the value of attribute term.



6
7
8
# File 'lib/evinrude/message/vote_reply.rb', line 6

def term
  @term
end

#vote_grantedObject (readonly)

Returns the value of attribute vote_granted.



6
7
8
# File 'lib/evinrude/message/vote_reply.rb', line 6

def vote_granted
  @vote_granted
end