module Joplin
Constants
- VERSION
Attributes
token[RW]
Public Class Methods
search(query, opts = {})
click to toggle source
# File lib/joplin.rb, line 13 def self.search(query, opts = {}) url = "#{Joplin::uri}/search/?query=#{query}&token=#{Joplin::token}&type=#{opts[:type]}" res = Faraday.get url parsed = JSON.parse res.body return parsed end
token()
click to toggle source
# File lib/joplin.rb, line 20 def self.token @@token end
token=(token)
click to toggle source
# File lib/joplin.rb, line 9 def self.token= token @@token = token end
uri()
click to toggle source
# File lib/joplin.rb, line 28 def self.uri @@uri end
uri=(uri)
click to toggle source
# File lib/joplin.rb, line 24 def self.uri= uri @@uri = uri end