Class: ProformaXML::TaskFile
- Defined in:
- lib/proformaxml/models/task_file.rb
Instance Attribute Summary collapse
-
#binary ⇒ Object
Returns the value of attribute binary.
-
#content ⇒ Object
Returns the value of attribute content.
-
#filename ⇒ Object
Returns the value of attribute filename.
-
#id ⇒ Object
Returns the value of attribute id.
-
#internal_description ⇒ Object
Returns the value of attribute internal_description.
-
#mimetype ⇒ Object
Returns the value of attribute mimetype.
-
#usage_by_lms ⇒ Object
Returns the value of attribute usage_by_lms.
-
#used_by_grader ⇒ Object
Returns the value of attribute used_by_grader.
-
#visible ⇒ Object
Returns the value of attribute visible.
Instance Method Summary collapse
Methods inherited from Base
Constructor Details
This class inherits a constructor from ProformaXML::Base
Instance Attribute Details
#binary ⇒ Object
Returns the value of attribute binary.
5 6 7 |
# File 'lib/proformaxml/models/task_file.rb', line 5 def binary @binary end |
#content ⇒ Object
Returns the value of attribute content.
5 6 7 |
# File 'lib/proformaxml/models/task_file.rb', line 5 def content @content end |
#filename ⇒ Object
Returns the value of attribute filename.
5 6 7 |
# File 'lib/proformaxml/models/task_file.rb', line 5 def filename @filename end |
#id ⇒ Object
Returns the value of attribute id.
5 6 7 |
# File 'lib/proformaxml/models/task_file.rb', line 5 def id @id end |
#internal_description ⇒ Object
Returns the value of attribute internal_description.
5 6 7 |
# File 'lib/proformaxml/models/task_file.rb', line 5 def internal_description @internal_description end |
#mimetype ⇒ Object
Returns the value of attribute mimetype.
5 6 7 |
# File 'lib/proformaxml/models/task_file.rb', line 5 def mimetype @mimetype end |
#usage_by_lms ⇒ Object
Returns the value of attribute usage_by_lms.
5 6 7 |
# File 'lib/proformaxml/models/task_file.rb', line 5 def usage_by_lms @usage_by_lms end |
#used_by_grader ⇒ Object
Returns the value of attribute used_by_grader.
5 6 7 |
# File 'lib/proformaxml/models/task_file.rb', line 5 def used_by_grader @used_by_grader end |
#visible ⇒ Object
Returns the value of attribute visible.
5 6 7 |
# File 'lib/proformaxml/models/task_file.rb', line 5 def visible @visible end |
Instance Method Details
#embed? ⇒ Boolean
7 8 9 |
# File 'lib/proformaxml/models/task_file.rb', line 7 def (content&.length || 0) < MAX_EMBEDDED_FILE_SIZE_KB * (2**10) end |