Sha256: 70ee2f82a6c7cada8e1dbf806828f7d4ba5fd74ce978716843a4ca2ee2b94cf2

Contents?: true

Size: 466 Bytes

Versions: 4

Compression:

Stored size: 466 Bytes

Contents

module Alephant
  module Lookup
    class LookupLocation
      S3_LOCATION_FIELD = 'location'

      attr_reader :component_id, :opts, :location

      def initialize(component_id, opts, location)
        @component_id = component_id
        @opts = opts
        @location = location
      end

      def to_h
        {
          :component_id => @component_id,
          :opts => opts,
          S3_LOCATION_FIELD => @location
        }
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
alephant-lookup-0.1.2 lib/alephant/lookup/lookup_location.rb
alephant-lookup-0.1.1 lib/alephant/lookup/lookup_location.rb
alephant-lookup-0.1.0 lib/alephant/lookup/lookup_location.rb
alephant-lookup-0.0.4 lib/alephant/lookup/lookup_location.rb