class Sqwiggle::Api::Service
Attributes
client[R]
klass[R]
Public Class Methods
new(klass, client)
click to toggle source
# File lib/sqwiggle/api/service.rb, line 7 def initialize(klass, client) @klass, @client = klass, client end
Public Instance Methods
all()
click to toggle source
# File lib/sqwiggle/api/service.rb, line 11 def all klass.all client end
find(id)
click to toggle source
# File lib/sqwiggle/api/service.rb, line 15 def find(id) klass.find id, client end
new(params={})
click to toggle source
# File lib/sqwiggle/api/service.rb, line 19 def new(params={}) klass.new ({client:client}.merge(params)) end