Class: Jahuty::Action::Show
Overview
Displays a specific resource.
Instance Attribute Summary collapse
-
#id ⇒ Object
Returns the value of attribute id.
Attributes inherited from Base
Instance Method Summary collapse
-
#initialize(resource:, id:, params: {}) ⇒ Show
constructor
A new instance of Show.
Constructor Details
#initialize(resource:, id:, params: {}) ⇒ Show
Returns a new instance of Show.
9 10 11 12 13 |
# File 'lib/jahuty/action/show.rb', line 9 def initialize(resource:, id:, params: {}) @id = id super(resource: resource, params: params) end |
Instance Attribute Details
#id ⇒ Object
Returns the value of attribute id.
7 8 9 |
# File 'lib/jahuty/action/show.rb', line 7 def id @id end |