Sha256: 405892279d1545f83a666b8cf4c13bfa9240702bc48309387189911cb128e949

Contents?: true

Size: 675 Bytes

Versions: 17

Compression:

Stored size: 675 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

17 entries across 17 versions & 1 rubygems

Version Path
oneaccess-0.4.4 lib/oneaccess/data_object/representer/address.rb
oneaccess-0.4.3 lib/oneaccess/data_object/representer/address.rb
oneaccess-0.4.2 lib/oneaccess/data_object/representer/address.rb
oneaccess-0.4.1 lib/oneaccess/data_object/representer/address.rb
oneaccess-0.4.0 lib/oneaccess/data_object/representer/address.rb
oneaccess-0.3.0 lib/oneaccess/data_object/representer/address.rb
oneaccess-0.2.0 lib/oneaccess/data_object/representer/address.rb
oneaccess-0.1.9 lib/oneaccess/data_object/representer/address.rb
oneaccess-0.1.8 lib/oneaccess/data_object/representer/address.rb
oneaccess-0.1.7 lib/oneaccess/data_object/representer/address.rb
oneaccess-0.1.6 lib/oneaccess/data_object/representer/address.rb
oneaccess-0.1.5 lib/oneaccess/data_object/representer/address.rb
oneaccess-0.1.4 lib/oneaccess/data_object/representer/address.rb
oneaccess-0.1.3 lib/oneaccess/data_object/representer/address.rb
oneaccess-0.1.2 lib/oneaccess/data_object/representer/address.rb
oneaccess-0.1.1 lib/oneaccess/data_object/representer/address.rb
oneaccess-0.1.0 lib/oneaccess/data_object/representer/address.rb