Sha256: 1bb9de587bdae4ec9a628475a329d30ba87777195080353a7c905b21e2ab5146
Contents?: true
Size: 648 Bytes
Versions: 3
Compression:
Stored size: 648 Bytes
Contents
# frozen_string_literal: true 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
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
immoscout-1.9.0 | lib/immoscout/models/actions/publish.rb |
immoscout-1.8.1 | lib/immoscout/models/actions/publish.rb |
immoscout-1.8.0 | lib/immoscout/models/actions/publish.rb |