Class: Txgh::Config::ProviderInstance

Inherits:
Object
  • Object
show all
Defined in:
lib/txgh/config/provider_instance.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(provider, parser) ⇒ ProviderInstance

Returns a new instance of ProviderInstance.



6
7
8
9
# File 'lib/txgh/config/provider_instance.rb', line 6

def initialize(provider, parser)
  @provider = provider
  @parser = parser
end

Instance Attribute Details

#parserObject (readonly)

Returns the value of attribute parser.



4
5
6
# File 'lib/txgh/config/provider_instance.rb', line 4

def parser
  @parser
end

#providerObject (readonly)

Returns the value of attribute provider.



4
5
6
# File 'lib/txgh/config/provider_instance.rb', line 4

def provider
  @provider
end

Instance Method Details

#load(payload, options = {}) ⇒ Object



15
16
17
# File 'lib/txgh/config/provider_instance.rb', line 15

def load(payload, options = {})
  provider.load(payload, parser, options)
end

#supports?(*args) ⇒ Boolean

Returns:

  • (Boolean)


11
12
13
# File 'lib/txgh/config/provider_instance.rb', line 11

def supports?(*args)
  provider.supports?(*args)
end