File: postal.rb

package info (click to toggle)
ruby-maxminddb 0.1.22-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye, forky, sid, trixie
  • size: 200 kB
  • sloc: ruby: 926; makefile: 3
file content (17 lines) | stat: -rw-r--r-- 213 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
module MaxMindDB
  class Result
    class Postal
      def initialize(raw)
        @raw = raw || {}
      end

      def code
        raw['code']
      end

      private

      attr_reader :raw
    end
  end
end