lib/trubl/api/touts.rb
# Publish a tout. Takes an optional "by" arg in the options hash (user_uid) that denotes the publisher
# returns trubl::tout instance or nil
Publish a tout. Takes an optional "by" arg in the options hash (user_uid) that denotes the publisher
returns trubl::tout instance or nil
Publish a tout . Takes an optional " by " arg in the options hash ( user_uid ) that denotes the publisher returns trubl :: tout instance or nil
def publish_tout(uid, options = {})
        path = "touts/#{uid}/publish/by/#{options[:by]}" if options[:by].present?
        path ||= "touts/#{uid}/publish"
        response = put(path)
        Trubl::Tout.new.from_response(response)
      end
def publish_tout ( uid , options = { } ) path = "touts/#{uid}/publish/by/#{options[:by]}" if options [ :by ] . present? path ||= "touts/#{uid}/publish" response = put ( path ) Trubl :: Tout . new . from_response ( response ) end
Publish a tout.
Publish a tout .
uid
options