Class: Idlc::Build::Metadata::MetadataAttribute
- Inherits:
-
Object
- Object
- Idlc::Build::Metadata::MetadataAttribute
- Defined in:
- lib/iapi-idlc-sdk-build/metadata.rb
Instance Attribute Summary collapse
-
#key ⇒ Object
readonly
Returns the value of attribute key.
-
#value ⇒ Object
readonly
Returns the value of attribute value.
Instance Method Summary collapse
- #defined? ⇒ Boolean
-
#initialize(value, required = false) ⇒ MetadataAttribute
constructor
A new instance of MetadataAttribute.
- #required? ⇒ Boolean
Constructor Details
#initialize(value, required = false) ⇒ MetadataAttribute
Returns a new instance of MetadataAttribute.
11 12 13 14 |
# File 'lib/iapi-idlc-sdk-build/metadata.rb', line 11 def initialize(value, required = false) @value = value @required = required end |
Instance Attribute Details
#key ⇒ Object (readonly)
Returns the value of attribute key.
8 9 10 |
# File 'lib/iapi-idlc-sdk-build/metadata.rb', line 8 def key @key end |
#value ⇒ Object (readonly)
Returns the value of attribute value.
9 10 11 |
# File 'lib/iapi-idlc-sdk-build/metadata.rb', line 9 def value @value end |
Instance Method Details
#defined? ⇒ Boolean
20 21 22 |
# File 'lib/iapi-idlc-sdk-build/metadata.rb', line 20 def defined? !@value.nil? end |
#required? ⇒ Boolean
16 17 18 |
# File 'lib/iapi-idlc-sdk-build/metadata.rb', line 16 def required? @required end |