Class: Cure::Dsl::Metadata
- Inherits:
-
Object
- Object
- Cure::Dsl::Metadata
- Defined in:
- lib/cure/dsl/metadata.rb
Instance Attribute Summary collapse
-
#_additional ⇒ Object
readonly
Returns the value of attribute _additional.
-
#_comments ⇒ Object
readonly
Returns the value of attribute _comments.
-
#_name ⇒ Object
readonly
Returns the value of attribute _name.
-
#_version ⇒ Object
readonly
Returns the value of attribute _version.
Instance Method Summary collapse
- #additional(data: {}) ⇒ Object
- #comments(comments) ⇒ Object
-
#initialize ⇒ Metadata
constructor
A new instance of Metadata.
- #name(name) ⇒ Object
- #version(version) ⇒ Object
Constructor Details
#initialize ⇒ Metadata
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
#_additional ⇒ Object (readonly)
Returns the value of attribute _additional.
7 8 9 |
# File 'lib/cure/dsl/metadata.rb', line 7 def _additional @_additional end |
#_comments ⇒ Object (readonly)
Returns the value of attribute _comments.
7 8 9 |
# File 'lib/cure/dsl/metadata.rb', line 7 def _comments @_comments end |
#_name ⇒ Object (readonly)
Returns the value of attribute _name.
7 8 9 |
# File 'lib/cure/dsl/metadata.rb', line 7 def _name @_name end |
#_version ⇒ Object (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 |