Class: HadoopDsl::BaseMapperModel

Inherits:
BaseModel
  • Object
show all
Defined in:
lib/core.rb

Instance Attribute Summary collapse

Attributes inherited from BaseModel

#controller

Instance Method Summary collapse

Methods included from DslElement

#method_missing

Constructor Details

#initialize(key, value) ⇒ BaseMapperModel

Returns a new instance of BaseMapperModel.



94
95
96
# File 'lib/core.rb', line 94

def initialize(key, value)
  @key, @value = key, value
end

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class HadoopDsl::DslElement

Instance Attribute Details

#keyObject (readonly)

Returns the value of attribute key.



92
93
94
# File 'lib/core.rb', line 92

def key
  @key
end

#valueObject (readonly)

Returns the value of attribute value.



92
93
94
# File 'lib/core.rb', line 92

def value
  @value
end