lib/alephant/lookup/lookup_query.rb in alephant-lookup-0.1.4 vs lib/alephant/lookup/lookup_query.rb in alephant-lookup-0.1.5
- old
+ new
@@ -4,13 +4,13 @@
module Alephant
module Lookup
class LookupQuery
attr_reader :table_name, :lookup_location
- def initialize(table_name, component_id, batch_version, opts)
+ def initialize(table_name, component_id, opts, batch_version)
@client = AWS::DynamoDB::Client::V20120810.new
@table_name = table_name
- @lookup_location = LookupLocation.new(component_id, batch_version, opts)
+ @lookup_location = LookupLocation.new(component_id, opts, batch_version)
end
def run!
lookup_location.tap do |l|
l.location = s3_location_from(