Class: Rawscsi::Base

Inherits:
Object
  • Object
show all
Defined in:
lib/rawscsi/base.rb

Direct Known Subclasses

Index, Search

Instance Attribute Summary collapse

Instance Method Summary collapse

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, options={})
  @is_active_record = options[:active_record]
  @model = model_name
  @config = Rawscsi.registered_models[model_name]
end

Instance Attribute Details

#configObject (readonly)

Returns the value of attribute config.



4
5
6
# File 'lib/rawscsi/base.rb', line 4

def config
  @config
end

#is_active_recordObject (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

#modelObject

Returns the value of attribute model.



3
4
5
# File 'lib/rawscsi/base.rb', line 3

def model
  @model
end