module Datawow::Models::Interface

Public Instance Methods

all(options = {}) click to toggle source
# File lib/datawow/models/interface.rb, line 6
def all(options = {})
  connector.get(options)
end
create(options) click to toggle source
# File lib/datawow/models/interface.rb, line 10
def create(options)
  connector.post(options)
end
find_by(options = {}) click to toggle source
# File lib/datawow/models/interface.rb, line 14
def find_by(options = {})
  @query_str = true if @query_str.nil?
  connector.get(options, @query_str)
end

Private Instance Methods

connector() click to toggle source
# File lib/datawow/models/interface.rb, line 21
def connector
  @connection ||= Connector.new(@path, @type, token: @project_key)
end