Class: Txgh::Config::ProviderInstance
- Inherits:
-
Object
- Object
- Txgh::Config::ProviderInstance
- Defined in:
- lib/txgh/config/provider_instance.rb
Instance Attribute Summary collapse
-
#parser ⇒ Object
readonly
Returns the value of attribute parser.
-
#provider ⇒ Object
readonly
Returns the value of attribute provider.
Instance Method Summary collapse
-
#initialize(provider, parser) ⇒ ProviderInstance
constructor
A new instance of ProviderInstance.
- #load(payload, options = {}) ⇒ Object
- #supports?(*args) ⇒ Boolean
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
#parser ⇒ Object (readonly)
Returns the value of attribute parser.
4 5 6 |
# File 'lib/txgh/config/provider_instance.rb', line 4 def parser @parser end |
#provider ⇒ Object (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, = {}) provider.load(payload, parser, ) end |
#supports?(*args) ⇒ Boolean
11 12 13 |
# File 'lib/txgh/config/provider_instance.rb', line 11 def supports?(*args) provider.supports?(*args) end |