Class: Quby::Questionnaires::Entities::Definition
- Inherits:
-
Object
- Object
- Quby::Questionnaires::Entities::Definition
- Extended by:
- ActiveModel::Naming
- Includes:
- ActiveModel::Validations
- Defined in:
- lib/quby/questionnaires/entities/definition.rb
Instance Attribute Summary collapse
-
#key ⇒ Object
Returns the value of attribute key.
-
#path ⇒ Object
Returns the value of attribute path.
-
#sourcecode ⇒ Object
Returns the value of attribute sourcecode.
-
#timestamp ⇒ Object
Returns the value of attribute timestamp.
Instance Method Summary collapse
-
#initialize(key:, path:, sourcecode: "", timestamp: nil) ⇒ Definition
constructor
A new instance of Definition.
Constructor Details
#initialize(key:, path:, sourcecode: "", timestamp: nil) ⇒ Definition
Returns a new instance of Definition.
15 16 17 18 19 20 |
# File 'lib/quby/questionnaires/entities/definition.rb', line 15 def initialize(key:, path:, sourcecode: "", timestamp: nil) @path = path @key = key @sourcecode = sourcecode @timestamp = end |
Instance Attribute Details
#key ⇒ Object
Returns the value of attribute key.
13 14 15 |
# File 'lib/quby/questionnaires/entities/definition.rb', line 13 def key @key end |
#path ⇒ Object
Returns the value of attribute path.
13 14 15 |
# File 'lib/quby/questionnaires/entities/definition.rb', line 13 def path @path end |
#sourcecode ⇒ Object
Returns the value of attribute sourcecode.
13 14 15 |
# File 'lib/quby/questionnaires/entities/definition.rb', line 13 def sourcecode @sourcecode end |
#timestamp ⇒ Object
Returns the value of attribute timestamp.
13 14 15 |
# File 'lib/quby/questionnaires/entities/definition.rb', line 13 def @timestamp end |