Class: GhostRb::Controllers::UsersController
- Inherits:
-
BaseController
- Object
- BaseController
- GhostRb::Controllers::UsersController
- Defined in:
- lib/ghost_rb/controllers/users_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) ⇒ UsersController
constructor
A new instance of UsersController.
Methods inherited from BaseController
#all, #fields, #filter, #find_by, #include, #limit, #order, #page, #where
Constructor Details
#initialize(client, params = nil) ⇒ UsersController
Returns a new instance of UsersController.
11 12 13 14 15 |
# File 'lib/ghost_rb/controllers/users_controller.rb', line 11 def initialize(client, params = nil) super @endpoint = 'users' @resource_klass = Resources::User end |
Instance Attribute Details
#endpoint ⇒ Object (readonly)
9 10 11 |
# File 'lib/ghost_rb/controllers/users_controller.rb', line 9 def endpoint @endpoint end |
#resource_klass ⇒ Object (readonly)
9 10 11 |
# File 'lib/ghost_rb/controllers/users_controller.rb', line 9 def resource_klass @resource_klass end |