Class: GhostRb::Controllers::TagsController
- Inherits:
-
BaseController
- Object
- BaseController
- GhostRb::Controllers::TagsController
- Defined in:
- lib/ghost_rb/controllers/tags_controller.rb
Overview
Instance Attribute Summary collapse
- #endpoint ⇒ Object readonly
- #resource_klass ⇒ Object readonly
Attributes inherited from BaseController
Instance Method Summary collapse
-
#initialize(client, params = nil) ⇒ TagsController
constructor
A new instance of TagsController.
Methods inherited from BaseController
#all, #fields, #filter, #find_by, #include, #limit, #order, #page, #where
Constructor Details
#initialize(client, params = nil) ⇒ TagsController
Returns a new instance of TagsController.
10 11 12 13 14 |
# File 'lib/ghost_rb/controllers/tags_controller.rb', line 10 def initialize(client, params = nil) super @endpoint = 'tags' @resource_klass = Resources::Tag end |
Instance Attribute Details
#endpoint ⇒ Object (readonly)
8 9 10 |
# File 'lib/ghost_rb/controllers/tags_controller.rb', line 8 def endpoint @endpoint end |
#resource_klass ⇒ Object (readonly)
8 9 10 |
# File 'lib/ghost_rb/controllers/tags_controller.rb', line 8 def resource_klass @resource_klass end |