Sha256: 701ef172b52f91631957af11ed51aa44dd330ff527491a31c08ea110ce4ced80

Contents?: true

Size: 765 Bytes

Versions: 6

Compression:

Stored size: 765 Bytes

Contents

# frozen_string_literal: true

require_relative "../region"
require_relative "../global_region"

module ONEAccess
  module DataObject
    module Representer
      class Country < Representable::Decorator
        include Representable::JSON

        property :id, as: :Id, type: Integer
        property :name, as: :Name, type: String
        property :code, as: :Code, type: String
        property :code3, as: :Code3, type: String
        property :description, as: :Description, type: String
        property :global_region, as: :GlobalRegion,
          decorator: Representer::GlobalRegion, class: DataObject::GlobalRegion
        collection :regions, as: :Regions,
          decorator: Representer::Region, class: DataObject::Region
      end
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
oneaccess-1.2.0 lib/oneaccess/data_object/representer/country.rb
oneaccess-1.1.0 lib/oneaccess/data_object/representer/country.rb
oneaccess-1.0.1 lib/oneaccess/data_object/representer/country.rb
oneaccess-1.0.0 lib/oneaccess/data_object/representer/country.rb
oneaccess-0.5.0 lib/oneaccess/data_object/representer/country.rb
oneaccess-0.4.5 lib/oneaccess/data_object/representer/country.rb