Sha256: 6537d3747af1ab30123bd0c173d27806135071f78bc0d78e899acd7e9ca2317d

Contents?: true

Size: 260 Bytes

Versions: 2

Compression:

Stored size: 260 Bytes

Contents

module Pwinty

  class Country < Pwinty::Base
    attribute :name, Types::String
    attribute :isoCode, Types::String

    def self.list
      response = Pwinty.conn.get("countries")
      Pwinty.collate_results(response.body['data'], self)
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
pwinty-3.0.7 lib/pwinty/country.rb
pwinty-3.0.6 lib/pwinty/country.rb