Sha256: c3f53f860b28625f8b1aefe1bc9a35bc33831e884178a97a11cc3450ea218c2a
Contents?: true
Size: 392 Bytes
Versions: 3
Compression:
Stored size: 392 Bytes
Contents
class Wordsmith::Template attr_reader :name, :slug, :project def initialize(name: nil, slug: nil, project: nil, **attributes) raise "Missing required keyword arguments" unless [name, slug, project].all? @name = name @slug = slug @project = project end def generate(data) Wordsmith.client.post "projects/#{project.slug}/templates/#{slug}/outputs", data end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
wordsmith-ruby-sdk-1.0.5 | lib/wordsmith/template.rb |
wordsmith-ruby-sdk-1.0.4 | lib/wordsmith/template.rb |
wordsmith-ruby-sdk-1.0.3 | lib/wordsmith/template.rb |