Class: Hubspot::Blog
- Defined in:
- app/models/hubspot/blog.rb
Overview
Finds blogs
Finds: Hubspot::Blog.find :all, :params => { :max => 10 } Hubspot::Blog.find <GUID>
Class Method Summary collapse
-
.element_path(id, prefix_options = {}, query_options = nil) ⇒ Object
Explicitly set element path.
Instance Method Summary collapse
-
#comments(params = {}) ⇒ Object
Convenience methods for retrieving a blog’s posts and comments.
- #posts(params = {}) ⇒ Object
Methods inherited from Base
collection_path, connection, #to_json
Class Method Details
.element_path(id, prefix_options = {}, query_options = nil) ⇒ Object
Explicitly set element path
28 29 30 31 |
# File 'app/models/hubspot/blog.rb', line 28 def self.element_path(id, = {}, = nil) , = () if .nil? "#{prefix()}#{URI.escape id.to_s}.#{format.extension}#{query_string()}" end |