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.


265
266
267
# File 'lib/polleverywhere/models.rb', line 265

def initialize(poll)
  @poll = poll
end

Instance Attribute Details

#pollObject (readonly)

Returns the value of attribute poll


263
264
265
# File 'lib/polleverywhere/models.rb', line 263

def poll
  @poll
end