class MagLoft::Api
Attributes
token[RW]
Public Class Methods
client(token = nil)
click to toggle source
# File lib/magloft/api.rb, line 15 def self.client(token = nil) @client ||= self.new(token) end
new(token)
click to toggle source
# File lib/magloft/api.rb, line 19 def initialize(token) @token = token end
Public Instance Methods
api_caller()
click to toggle source
# File lib/magloft/api.rb, line 23 def api_caller @api_caller ||= ApiCaller.new end
typeloft_blocks()
click to toggle source
# File lib/magloft/api.rb, line 35 def typeloft_blocks TypeloftBlock end
typeloft_templates()
click to toggle source
# File lib/magloft/api.rb, line 31 def typeloft_templates TypeloftTemplate end
typeloft_themes()
click to toggle source
# File lib/magloft/api.rb, line 27 def typeloft_themes TypeloftTheme end