class Learndot::Entity

Public Class Methods

new(api) click to toggle source
# File lib/learndot/entity.rb, line 2
def initialize(api)
  @api = api
end

Public Instance Methods

create(entity_name, conditions) click to toggle source
# File lib/learndot/entity.rb, line 10
def create(entity_name, conditions)
  @api.create(entity_name, conditions)
end
retrieve(entity_name, conditions, options = {orderBy: 'Name', asc: true}) click to toggle source
# File lib/learndot/entity.rb, line 6
def retrieve(entity_name, conditions, options = {orderBy: 'Name', asc: true})
  entity = @api.search(entity_name, conditions, options)
end
update(entity_name, component_id, conditions={}) click to toggle source
# File lib/learndot/entity.rb, line 14
def update(entity_name, component_id, conditions={})
  @api.update(entity_name, conditions, component_id)
end