Sha256: de509a1ebcd8232962cc9ea6c5d07bff91c07ae8bb5d9cad46b70dbf6944fa14
Contents?: true
Size: 705 Bytes
Versions: 9
Compression:
Stored size: 705 Bytes
Contents
# frozen_string_literal: true require 'json' require_relative '../concerns/modelable' module Immoscout module Models module Actions # Actions to publish a Real Estate. module Publish extend ActiveSupport::Concern included do include Immoscout::Models::Concerns::Modelable def save response = api.post('publish', as_json) handle_response(response) self end def destroy response = api.delete( "publish/#{real_estate.id}_#{publish_channel.id}" ) handle_response(response) self end end end end end end
Version data entries
9 entries across 9 versions & 1 rubygems