Module: Datawow::Models::Interface

Instance Method Summary collapse

Instance Method Details

#all(options = {}) ⇒ Object



6
7
8
# File 'lib/datawow/models/interface.rb', line 6

def all(options = {})
  connector.get(options)
end

#create(options) ⇒ Object



10
11
12
# File 'lib/datawow/models/interface.rb', line 10

def create(options)
  connector.post(options)
end

#find_by(options = {}) ⇒ Object



14
15
16
17
# 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