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.



261
262
263
# File 'lib/polleverywhere/models.rb', line 261

def initialize(poll)
  @poll = poll
end

Instance Attribute Details

#pollObject (readonly)

Returns the value of attribute poll.



259
260
261
# File 'lib/polleverywhere/models.rb', line 259

def poll
  @poll
end