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
-
#json ⇒ Object
Returns the value of attribute json.
-
#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: "", json: nil, timestamp: nil) ⇒ Definition
constructor
A new instance of Definition.
Constructor Details
#initialize(key:, path:, sourcecode: "", json: nil, timestamp: nil) ⇒ Definition
Returns a new instance of Definition.
14 15 16 17 18 19 20 |
# File 'lib/quby/questionnaires/entities/definition.rb', line 14 def initialize(key:, path:, sourcecode: "", json: nil, timestamp: nil) @path = path @key = key @sourcecode = sourcecode @json = json @timestamp = end |
Instance Attribute Details
#json ⇒ Object
Returns the value of attribute json.
12 13 14 |
# File 'lib/quby/questionnaires/entities/definition.rb', line 12 def json @json end |
#key ⇒ Object
Returns the value of attribute key.
12 13 14 |
# File 'lib/quby/questionnaires/entities/definition.rb', line 12 def key @key end |
#path ⇒ Object
Returns the value of attribute path.
12 13 14 |
# File 'lib/quby/questionnaires/entities/definition.rb', line 12 def path @path end |
#sourcecode ⇒ Object
Returns the value of attribute sourcecode.
12 13 14 |
# File 'lib/quby/questionnaires/entities/definition.rb', line 12 def sourcecode @sourcecode end |
#timestamp ⇒ Object
Returns the value of attribute timestamp.
12 13 14 |
# File 'lib/quby/questionnaires/entities/definition.rb', line 12 def @timestamp end |