Method: StrawberryAPI::Client::Templates#templates

Defined in:
lib/strawberry_api/client/templates.rb

#templatesArray<StrawberryAPI::Template>

Fetches all templates

Returns:



10
11
12
13
14
# File 'lib/strawberry_api/client/templates.rb', line 10

def templates
  get("/templates").parse['templates']&.map do |template|
    Template.new(template)
  end
end