Class: Shiro::Prompt

Inherits:
Object
  • Object
show all
Defined in:
lib/shiro/prompt.rb

Class Method Summary collapse

Class Method Details

.listObject



3
4
5
# File 'lib/shiro/prompt.rb', line 3

def self.list
  client.get("/prompts").parsed_response
end

.retrieve(id) ⇒ Object



7
8
9
# File 'lib/shiro/prompt.rb', line 7

def self.retrieve(id)
  client.get("/prompts/#{id}").parsed_response
end