Class: Puree::REST::Publisher

Inherits:
Base
  • Object
show all
Defined in:
lib/puree/rest/publisher.rb

Overview

Requests for the Publisher resource

Instance Method Summary collapse

Methods inherited from Base

#all, #find, #orderings, #renderings

Constructor Details

#initialize(config) ⇒ Publisher

Returns a new instance of Publisher.

Parameters:

  • config (Hash)

Options Hash (config):

  • :url (String)

    URL of the Pure host

  • :username (String)

    Username of the Pure host account

  • :password (String)

    Password of the Pure host account

  • :api_key (String)

    API key of the Pure host account



10
11
12
# File 'lib/puree/rest/publisher.rb', line 10

def initialize(config)
  super
end

Instance Method Details

#approved(params: {}, accept: :xml) ⇒ HTTP::Response

Parameters:

  • params (Hash) (defaults to: {})
  • accept (Symbol) (defaults to: :xml)

Returns:

  • (HTTP::Response)


15
16
17
18
19
# File 'lib/puree/rest/publisher.rb', line 15

def approved(params: {}, accept: :xml)
  get_request_collection_subcollection(subcollection: 'approved',
                                   params: params,
                                   accept: accept)
end