Class: Rbdash::Models::Query

Inherits:
BaseModel show all
Defined in:
lib/rbdash/models/query.rb

Instance Attribute Summary

Attributes inherited from BaseModel

#body

Class Method Summary collapse

Methods inherited from BaseModel

client, find, find_all, #initialize, load, #save, #to_json, update

Constructor Details

This class inherits a constructor from Rbdash::Models::BaseModel

Class Method Details

.attributesObject



6
7
8
9
10
11
12
13
14
15
16
# File 'lib/rbdash/models/query.rb', line 6

def self.attributes
  [
    :id,             # number
    :data_source_id, # number
    :query,          # string
    :name,           # string
    :description,    # string
    :schedule,       # string
    :options         # object
  ]
end

.dirnameObject



22
23
24
# File 'lib/rbdash/models/query.rb', line 22

def self.dirname
  'queries'
end

.endpointObject



18
19
20
# File 'lib/rbdash/models/query.rb', line 18

def self.endpoint
  '/queries'
end