Class: Rawscsi::Base
- Inherits:
-
Object
- Object
- Rawscsi::Base
- Defined in:
- lib/rawscsi/base.rb
Instance Attribute Summary collapse
-
#config ⇒ Object
readonly
Returns the value of attribute config.
-
#is_active_record ⇒ Object
readonly
Returns the value of attribute is_active_record.
-
#model ⇒ Object
Returns the value of attribute model.
Instance Method Summary collapse
-
#initialize(model_name, options = {}) ⇒ Base
constructor
A new instance of Base.
Constructor Details
#initialize(model_name, options = {}) ⇒ Base
Returns a new instance of Base.
6 7 8 9 10 |
# File 'lib/rawscsi/base.rb', line 6 def initialize(model_name, ={}) @is_active_record = [:active_record] @model = model_name @config = Rawscsi.registered_models[model_name] end |
Instance Attribute Details
#config ⇒ Object (readonly)
Returns the value of attribute config.
4 5 6 |
# File 'lib/rawscsi/base.rb', line 4 def config @config end |
#is_active_record ⇒ Object (readonly)
Returns the value of attribute is_active_record.
4 5 6 |
# File 'lib/rawscsi/base.rb', line 4 def is_active_record @is_active_record end |
#model ⇒ Object
Returns the value of attribute model.
3 4 5 |
# File 'lib/rawscsi/base.rb', line 3 def model @model end |