Method: StrawberryAPI::Client::Templates#templates
- Defined in:
- lib/strawberry_api/client/templates.rb
#templates ⇒ Array<StrawberryAPI::Template>
Fetches all templates
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 |