Class: Puree::Publisher
Overview
Publisher resource
Instance Attribute Summary
Attributes inherited from Resource
Instance Method Summary collapse
-
#initialize(base_url: nil, username: nil, password: nil, basic_auth: nil) ⇒ Publisher
constructor
A new instance of Publisher.
-
#metadata ⇒ Hash
All metadata.
-
#name ⇒ String
Name.
Methods inherited from Resource
#created, #get, #locale, #modified, #set_content, #uuid
Constructor Details
#initialize(base_url: nil, username: nil, password: nil, basic_auth: nil) ⇒ Publisher
Returns a new instance of Publisher.
11 12 13 14 15 16 17 |
# File 'lib/puree/publisher.rb', line 11 def initialize(base_url: nil, username: nil, password: nil, basic_auth: nil) super(api: :publisher, base_url: base_url, username: username, password: password, basic_auth: basic_auth) end |
Instance Method Details
#metadata ⇒ Hash
All metadata
37 38 39 |
# File 'lib/puree/publisher.rb', line 37 def @metadata end |
#name ⇒ String
Name
22 23 24 |
# File 'lib/puree/publisher.rb', line 22 def name @metadata['name'] end |