Sha256: e69438bc22198319cfb1852bdbda42391fd43be907ff9f981da34f5c634a5aeb

Contents?: true

Size: 372 Bytes

Versions: 1

Compression:

Stored size: 372 Bytes

Contents

module Kosher
  class Venue < Structure
    include Static

    set_data_path File.expand_path("../../../data/venues.yml", __FILE__)

    # The name of the venue.
    key :name

    # The country the venue is based in.
    key :country

    class << self
      def amazon
        @amazons ||= select { |record| record.name.include? 'Amazon' }
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
kosher-0.10.0 lib/kosher/venue.rb