Sha256: 66aeaab9e76191e1d29919d55691c64dba4a61ec8582bb5bc33a1fc052ba6ff1

Contents?: true

Size: 676 Bytes

Versions: 2

Compression:

Stored size: 676 Bytes

Contents

# frozen_string_literal: true

require_relative '../city'
require_relative '../country'
require_relative '../region'

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

        property :id, as: :Id, type: Integer
        property :is_main_address, as: :IsMainAddress
        property :city, as: :City, decorator: Representer::City, class: DataObject::City
        property :country, as: :Country, decorator: Representer::Country, class: DataObject::Country
        property :region, as: :Region, decorator: Representer::Region, class: DataObject::Region
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
oneaccess-1.3.1 lib/oneaccess/data_object/representer/address.rb
oneaccess-1.3.0 lib/oneaccess/data_object/representer/address.rb