Sha256: d0af51dd4483a4cf0e2e794858fa5eb916c957e1dab74e225c410507d02c412c

Contents?: true

Size: 769 Bytes

Versions: 2

Compression:

Stored size: 769 Bytes

Contents

# frozen_string_literal: true

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

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

        property :id, as: :Id, type: Integer
        property :name, as: :Name, type: String
        property :code, as: :Code, type: String
        property :description, as: :Description, type: String
        property :longitude, as: :Longitude, type: Float
        property :latitude, as: :Type, type: Float
        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/city.rb
oneaccess-1.3.0 lib/oneaccess/data_object/representer/city.rb