Class: Moodle2CC::Moodle2::Models::Choice

Inherits:
Object
  • Object
show all
Defined in:
lib/moodle2cc/moodle2/models/choice.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeChoice

Returns a new instance of Choice.



8
9
10
# File 'lib/moodle2cc/moodle2/models/choice.rb', line 8

def initialize
  @options = []
end

Instance Attribute Details

#allow_updateObject

Returns the value of attribute allow_update.



4
5
6
# File 'lib/moodle2cc/moodle2/models/choice.rb', line 4

def allow_update
  @allow_update
end

#completion_submitObject

Returns the value of attribute completion_submit.



4
5
6
# File 'lib/moodle2cc/moodle2/models/choice.rb', line 4

def completion_submit
  @completion_submit
end

#displayObject

Returns the value of attribute display.



4
5
6
# File 'lib/moodle2cc/moodle2/models/choice.rb', line 4

def display
  @display
end

#idObject

Returns the value of attribute id.



4
5
6
# File 'lib/moodle2cc/moodle2/models/choice.rb', line 4

def id
  @id
end

#introObject

Returns the value of attribute intro.



4
5
6
# File 'lib/moodle2cc/moodle2/models/choice.rb', line 4

def intro
  @intro
end

#intro_formatObject

Returns the value of attribute intro_format.



4
5
6
# File 'lib/moodle2cc/moodle2/models/choice.rb', line 4

def intro_format
  @intro_format
end

#limit_answersObject

Returns the value of attribute limit_answers.



4
5
6
# File 'lib/moodle2cc/moodle2/models/choice.rb', line 4

def limit_answers
  @limit_answers
end

#module_idObject

Returns the value of attribute module_id.



4
5
6
# File 'lib/moodle2cc/moodle2/models/choice.rb', line 4

def module_id
  @module_id
end

#nameObject

Returns the value of attribute name.



4
5
6
# File 'lib/moodle2cc/moodle2/models/choice.rb', line 4

def name
  @name
end

#optionsObject

Returns the value of attribute options.



4
5
6
# File 'lib/moodle2cc/moodle2/models/choice.rb', line 4

def options
  @options
end

#publishObject

Returns the value of attribute publish.



4
5
6
# File 'lib/moodle2cc/moodle2/models/choice.rb', line 4

def publish
  @publish
end

#show_resultsObject

Returns the value of attribute show_results.



4
5
6
# File 'lib/moodle2cc/moodle2/models/choice.rb', line 4

def show_results
  @show_results
end

#show_unansweredObject

Returns the value of attribute show_unanswered.



4
5
6
# File 'lib/moodle2cc/moodle2/models/choice.rb', line 4

def show_unanswered
  @show_unanswered
end

#time_closeObject

Returns the value of attribute time_close.



4
5
6
# File 'lib/moodle2cc/moodle2/models/choice.rb', line 4

def time_close
  @time_close
end

#time_modifiedObject

Returns the value of attribute time_modified.



4
5
6
# File 'lib/moodle2cc/moodle2/models/choice.rb', line 4

def time_modified
  @time_modified
end

#time_openObject

Returns the value of attribute time_open.



4
5
6
# File 'lib/moodle2cc/moodle2/models/choice.rb', line 4

def time_open
  @time_open
end

#visibleObject

Returns the value of attribute visible.



4
5
6
# File 'lib/moodle2cc/moodle2/models/choice.rb', line 4

def visible
  @visible
end