Class: Evergreen::IDL
- Inherits:
-
Object
- Object
- Evergreen::IDL
- Defined in:
- lib/evergreen/idl.rb
Overview
Evergreen’s fieldmapper IDL
Defined Under Namespace
Classes: IDLSaxHandler, IDLSaxParser
Instance Attribute Summary collapse
-
#fields ⇒ Object
readonly
Returns the value of attribute fields.
Instance Method Summary collapse
- #[](key) ⇒ Object
-
#initialize(configuration) ⇒ IDL
constructor
A new instance of IDL.
Constructor Details
#initialize(configuration) ⇒ IDL
Returns a new instance of IDL.
12 13 14 15 16 17 |
# File 'lib/evergreen/idl.rb', line 12 def initialize(configuration) @configuration = configuration @handler = IDLSaxHandler.new fetch freeze end |
Instance Attribute Details
#fields ⇒ Object (readonly)
Returns the value of attribute fields.
10 11 12 |
# File 'lib/evergreen/idl.rb', line 10 def fields @fields end |
Instance Method Details
#[](key) ⇒ Object
19 20 21 |
# File 'lib/evergreen/idl.rb', line 19 def [](key) fields[key] end |