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.



250
251
252
# File 'lib/polleverywhere/models.rb', line 250

def initialize(poll)
  @poll = poll
end

Instance Attribute Details

#pollObject (readonly)

Returns the value of attribute poll.



248
249
250
# File 'lib/polleverywhere/models.rb', line 248

def poll
  @poll
end