Class: Evergreen::IDL

Inherits:
Object
  • Object
show all
Defined in:
lib/evergreen/idl.rb

Overview

Evergreen’s fieldmapper IDL

Defined Under Namespace

Classes: IDLSaxHandler, IDLSaxParser

Instance Attribute Summary collapse

Instance Method Summary collapse

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

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