Sha256: 16ce5ca2917ac7fa0ed8da5a31c228a7546f95121b2ec3c6e9e882e885f5f947

Contents?: true

Size: 298 Bytes

Versions: 1

Compression:

Stored size: 298 Bytes

Contents

require 'opennorth/represent/models/postal_code'

module Opennorth
  class Represent
    class PostalCodes < Fog::Collection
      model Opennorth::Represent::PostalCode

      def get(postal_code)
        new.merge_attributes(service.get_postal_code(postal_code).body)
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
opennorth-represent-0.1.0 lib/opennorth/represent/models/postal_codes.rb