Class: NinjaModel::Adapters::AdapterSpecification
- Inherits:
-
Object
- Object
- NinjaModel::Adapters::AdapterSpecification
- Defined in:
- lib/ninja_model/adapters/adapter_specification.rb
Instance Attribute Summary collapse
-
#config ⇒ Object
readonly
Returns the value of attribute config.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
Instance Method Summary collapse
-
#initialize(config, name) ⇒ AdapterSpecification
constructor
A new instance of AdapterSpecification.
Constructor Details
#initialize(config, name) ⇒ AdapterSpecification
Returns a new instance of AdapterSpecification.
6 7 8 |
# File 'lib/ninja_model/adapters/adapter_specification.rb', line 6 def initialize(config, name) @config, @name = config, name end |
Instance Attribute Details
#config ⇒ Object (readonly)
Returns the value of attribute config.
4 5 6 |
# File 'lib/ninja_model/adapters/adapter_specification.rb', line 4 def config @config end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
4 5 6 |
# File 'lib/ninja_model/adapters/adapter_specification.rb', line 4 def name @name end |