Class: Alephant::Lookup::LookupLocation

Inherits:
Object
  • Object
show all
Defined in:
lib/alephant/lookup/lookup_location.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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_versionObject (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_idObject (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_keyObject (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

#locationObject

Returns the value of attribute location.



7
8
9
# File 'lib/alephant/lookup/lookup_location.rb', line 7

def location
  @location
end

#optsObject (readonly)

Returns the value of attribute opts.



6
7
8
# File 'lib/alephant/lookup/lookup_location.rb', line 6

def opts
  @opts
end

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