lib/pwinty/country.rb in pwinty-3.0.5 vs lib/pwinty/country.rb in pwinty-3.0.6

- old
+ new

@@ -1,12 +1,12 @@ module Pwinty - class Country < Pwinty::Base - attribute :name, Types::String - attribute :isoCode, Types::String + 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 + def self.list + response = Pwinty.conn.get("countries") + Pwinty.collate_results(response.body['data'], self) + end + end end