Class: Alephant::Lookup::LookupLocation
- Inherits:
-
Object
- Object
- Alephant::Lookup::LookupLocation
- Defined in:
- lib/alephant/lookup/lookup_location.rb
Instance Attribute Summary collapse
-
#batch_version ⇒ Object
readonly
Returns the value of attribute batch_version.
-
#component_id ⇒ Object
readonly
Returns the value of attribute component_id.
-
#component_key ⇒ Object
readonly
Returns the value of attribute component_key.
-
#location ⇒ Object
Returns the value of attribute location.
-
#opts ⇒ Object
readonly
Returns the value of attribute opts.
-
#opts_hash ⇒ Object
readonly
Returns the value of attribute opts_hash.
Instance Method Summary collapse
-
#initialize(component_id, opts, batch_version, location = nil) ⇒ LookupLocation
constructor
A new instance of LookupLocation.
Constructor Details
#initialize(component_id, opts, batch_version, location = nil) ⇒ LookupLocation
Returns a new instance of LookupLocation.
9 10 11 12 13 14 15 |
# File 'lib/alephant/lookup/lookup_location.rb', line 9 def initialize(component_id, opts, batch_version, location = nil) @component_id = component_id @batch_version = batch_version @opts = opts @opts_hash = hash_for(opts) @location = location end |
Instance Attribute Details
#batch_version ⇒ Object (readonly)
Returns the value of attribute batch_version.
6 7 8 |
# File 'lib/alephant/lookup/lookup_location.rb', line 6 def batch_version @batch_version end |
#component_id ⇒ Object (readonly)
Returns the value of attribute component_id.
6 7 8 |
# File 'lib/alephant/lookup/lookup_location.rb', line 6 def component_id @component_id end |
#component_key ⇒ Object (readonly)
Returns the value of attribute component_key.
6 7 8 |
# File 'lib/alephant/lookup/lookup_location.rb', line 6 def component_key @component_key end |
#location ⇒ Object
Returns the value of attribute location.
7 8 9 |
# File 'lib/alephant/lookup/lookup_location.rb', line 7 def location @location end |
#opts ⇒ Object (readonly)
Returns the value of attribute opts.
6 7 8 |
# File 'lib/alephant/lookup/lookup_location.rb', line 6 def opts @opts end |
#opts_hash ⇒ Object (readonly)
Returns the value of attribute opts_hash.
6 7 8 |
# File 'lib/alephant/lookup/lookup_location.rb', line 6 def opts_hash @opts_hash end |