Class: Jahuty::Action::Show

Inherits:
Base
  • Object
show all
Defined in:
lib/jahuty/action/show.rb

Overview

Displays a specific resource.

Instance Attribute Summary collapse

Attributes inherited from Base

#params, #resource

Instance Method Summary collapse

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

#idObject

Returns the value of attribute id.



7
8
9
# File 'lib/jahuty/action/show.rb', line 7

def id
  @id
end