Class: Quby::Questionnaires::Entities::Definition

Inherits:
Object
  • Object
show all
Extended by:
ActiveModel::Naming
Includes:
ActiveModel::Validations
Defined in:
lib/quby/questionnaires/entities/definition.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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 = timestamp
end

Instance Attribute Details

#keyObject

Returns the value of attribute key.



13
14
15
# File 'lib/quby/questionnaires/entities/definition.rb', line 13

def key
  @key
end

#pathObject

Returns the value of attribute path.



13
14
15
# File 'lib/quby/questionnaires/entities/definition.rb', line 13

def path
  @path
end

#sourcecodeObject

Returns the value of attribute sourcecode.



13
14
15
# File 'lib/quby/questionnaires/entities/definition.rb', line 13

def sourcecode
  @sourcecode
end

#timestampObject

Returns the value of attribute timestamp.



13
14
15
# File 'lib/quby/questionnaires/entities/definition.rb', line 13

def timestamp
  @timestamp
end