class LessonlyApi::Tags

Public Class Methods

list() click to toggle source

Retrieve all tags docs.lessonly.com/#list-tags

@return [ResourceType::Tags] the response converted to a resource object

# File lib/lessonly_api/tags.rb, line 8
def list
  raw_result = send_get('/tags')
  LessonlyApi::ResourceType::Tags.new(raw_result)
end
show(id) click to toggle source

Retrieve the tag's information docs.lessonly.com/#show-tag-details

@param id [Integer] ID of the tag @return [ResourceType::Tag] the response converted to a resource object

# File lib/lessonly_api/tags.rb, line 18
def show(id)
  raw_result = send_get("/tags/#{id}")
  ResourceType::Tag.new(raw_result)
end