class Eventbrite::Api::Model::StructuredContent

Public Instance Methods

create(object, opts={}) click to toggle source
# File lib/eventbrite/api/model/structured_content.rb, line 9
def create(object, opts={})
  @client.connection.post(url(opts, '1/'), {:headers => @client.headers, :body => object.to_json})
end
model_route() click to toggle source
# File lib/eventbrite/api/model/structured_content.rb, line 5
def model_route
  'events/:event_id/structured_content'
end
update(page_version, object, opts={}) click to toggle source
# File lib/eventbrite/api/model/structured_content.rb, line 13
def update(page_version, object, opts={})
  page_version = page_version.to_s
  page_version << '/' unless page_version.match? /\/$/
  @client.connection.post(url(opts, page_version), {:headers => @client.headers, :body => object.to_json})
end