Class: Pinterest::Interest
- Defined in:
- lib/pinterest/models/interest.rb
Overview
A object representing a Pinterest interest (topic).
Constant Summary
- FIELDS =
The list of fields of the object.
["id", "name"].freeze
Class Method Summary collapse
-
.create(data) ⇒ Pinterest::Board
Creates a new interest (topic) object.
Instance Method Summary collapse
-
#as_json(options = {}) ⇒ Hash
Serialize the object as a Hash that can be serialized as JSON.
Methods inherited from Entity
Constructor Details
This class inherits a constructor from Pinterest::Entity
Class Method Details
.create(data) ⇒ Pinterest::Board
Creates a new interest (topic) object.
18 19 20 |
# File 'lib/pinterest/models/interest.rb', line 18 def self.create(data) new(data) end |