Class: Evinrude::Message::VoteReply
- Inherits:
-
Evinrude::Message
- Object
- Evinrude::Message
- Evinrude::Message::VoteReply
- Defined in:
- lib/evinrude/message/vote_reply.rb
Instance Attribute Summary collapse
-
#term ⇒ Object
readonly
Returns the value of attribute term.
-
#vote_granted ⇒ Object
readonly
Returns the value of attribute vote_granted.
Instance Method Summary collapse
-
#initialize(term:, vote_granted:) ⇒ VoteReply
constructor
A new instance of VoteReply.
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
#term ⇒ Object (readonly)
Returns the value of attribute term.
6 7 8 |
# File 'lib/evinrude/message/vote_reply.rb', line 6 def term @term end |
#vote_granted ⇒ Object (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 |