Sha256: 48113318025b3e097bca7101db24bddcc76a887cbd3a74b9b01da85f34e7b0fe

Contents?: true

Size: 683 Bytes

Versions: 1

Compression:

Stored size: 683 Bytes

Contents

# frozen_string_literal: true

require_relative 'concerns/renderable'
require_relative 'concerns/propertiable'
require_relative 'actions/publish'
require_relative 'parts/real_estate'
require_relative 'parts/publish_channel'

module Immoscout
  module Models
    class Publish < Base
      include Immoscout::Models::Concerns::Renderable
      include Immoscout::Models::Concerns::Propertiable
      include Immoscout::Models::Actions::Publish

      self.json_wrapper = 'common.publishObject'

      property :real_estate, coerce: Immoscout::Models::Parts::RealEstate
      property :publish_channel,
               coerce: Immoscout::Models::Parts::PublishChannel
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
immoscout-1.3.2 lib/immoscout/models/publish.rb