Class: Flydata::Source::MasterContext

Inherits:
Object
  • Object
show all
Defined in:
lib/flydata/source.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(de) ⇒ MasterContext

Returns a new instance of MasterContext.


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

def initialize(de)
  @de = de
end

Dynamic Method Handling

This class handles dynamic methods through the method_missing method

#method_missing(method_sym, *args) ⇒ Object


99
100
101
102
# File 'lib/flydata/source.rb', line 99

def method_missing(method_sym, *args)
  source_class = Source.component_class_for method_sym, de
  source_class.new(self, *args)
end

Instance Attribute Details

#deObject (readonly)

Returns the value of attribute de


97
98
99
# File 'lib/flydata/source.rb', line 97

def de
  @de
end