Sha256: c29219019247951bf07b24a710c49b58c8c3efc13236604ac94f8a1b13825025
Contents?: true
Size: 701 Bytes
Versions: 1
Compression:
Stored size: 701 Bytes
Contents
# frozen_string_literal: true require 'json' require_relative '../concerns/modelable' module Immoscout module Models module Actions 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 class_methods do end end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
immoscout-1.3.2 | lib/immoscout/models/actions/publish.rb |