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: "", 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 = timestamp
end

Instance Attribute Details

#jsonObject

Returns the value of attribute json.



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

def json
  @json
end

#keyObject

Returns the value of attribute key.



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

def key
  @key
end

#pathObject

Returns the value of attribute path.



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

def path
  @path
end

#sourcecodeObject

Returns the value of attribute sourcecode.



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

def sourcecode
  @sourcecode
end

#timestampObject

Returns the value of attribute timestamp.



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

def timestamp
  @timestamp
end