Class: Cure::Dsl::Metadata

Inherits:
Object
  • Object
show all
Defined in:
lib/cure/dsl/metadata.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeMetadata

Returns a new instance of Metadata.



9
10
11
12
13
14
# File 'lib/cure/dsl/metadata.rb', line 9

def initialize
  @_name = nil
  @_version = nil
  @_comments = nil
  @_additional = {}
end

Instance Attribute Details

#_additionalObject (readonly)

Returns the value of attribute _additional.



7
8
9
# File 'lib/cure/dsl/metadata.rb', line 7

def _additional
  @_additional
end

#_commentsObject (readonly)

Returns the value of attribute _comments.



7
8
9
# File 'lib/cure/dsl/metadata.rb', line 7

def _comments
  @_comments
end

#_nameObject (readonly)

Returns the value of attribute _name.



7
8
9
# File 'lib/cure/dsl/metadata.rb', line 7

def _name
  @_name
end

#_versionObject (readonly)

Returns the value of attribute _version.



7
8
9
# File 'lib/cure/dsl/metadata.rb', line 7

def _version
  @_version
end

Instance Method Details

#additional(data: {}) ⇒ Object



28
29
30
# File 'lib/cure/dsl/metadata.rb', line 28

def additional(data: {})
  @_additional = data
end

#comments(comments) ⇒ Object



24
25
26
# File 'lib/cure/dsl/metadata.rb', line 24

def comments(comments)
  @_comments = comments
end

#name(name) ⇒ Object



16
17
18
# File 'lib/cure/dsl/metadata.rb', line 16

def name(name)
  @_name = name
end

#version(version) ⇒ Object



20
21
22
# File 'lib/cure/dsl/metadata.rb', line 20

def version(version)
  @_version = version
end