Class: PollEverywhere::Models::MultipleChoicePoll::Option

Inherits:
Object
  • Object
show all
Includes:
Serializable
Defined in:
lib/polleverywhere/models.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Serializable

included

Constructor Details

#initialize(poll) ⇒ Option

Returns a new instance of Option.



181
182
183
# File 'lib/polleverywhere/models.rb', line 181

def initialize(poll)
  @poll = poll
end

Instance Attribute Details

#pollObject (readonly)

Returns the value of attribute poll.



179
180
181
# File 'lib/polleverywhere/models.rb', line 179

def poll
  @poll
end