class GatherContent::Api::Template
Attributes
template_id[RW]
Public Class Methods
new(template_id, data = nil)
click to toggle source
# File lib/gather_content/api/template.rb, line 6 def initialize(template_id, data = nil) raise ArgumentError, "Template_id is required!" if template_id.nil? @template_id = template_id @data = data end
Public Instance Methods
[](key)
click to toggle source
# File lib/gather_content/api/template.rb, line 12 def [](key) fetch[key] end
Private Instance Methods
params()
click to toggle source
# File lib/gather_content/api/template.rb, line 22 def params; end
path()
click to toggle source
# File lib/gather_content/api/template.rb, line 18 def path @path ||= "/templates/#{template_id}" end