Class: Idlc::Build::Metadata::MetadataAttribute

Inherits:
Object
  • Object
show all
Defined in:
lib/iapi-idlc-sdk-build/metadata.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#keyObject (readonly)

Returns the value of attribute key.



8
9
10
# File 'lib/iapi-idlc-sdk-build/metadata.rb', line 8

def key
  @key
end

#valueObject (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

Returns:

  • (Boolean)


20
21
22
# File 'lib/iapi-idlc-sdk-build/metadata.rb', line 20

def defined?
  !@value.nil?
end

#required?Boolean

Returns:

  • (Boolean)


16
17
18
# File 'lib/iapi-idlc-sdk-build/metadata.rb', line 16

def required?
  @required
end