Class: Factual::Write::Insert

Inherits:
Base
  • Object
show all
Defined in:
lib/factual/write/insert.rb

Constant Summary collapse

VALID_KEYS =
[
  :table, :user,
  :values,
  :comment, :reference
]

Instance Method Summary collapse

Methods inherited from Base

#body, #write

Constructor Details

#initialize(api, params) ⇒ Insert

Returns a new instance of Insert.



10
11
12
13
# File 'lib/factual/write/insert.rb', line 10

def initialize(api, params)
  validate_params(params)
  super(api, params)
end

Instance Method Details

#pathObject



21
22
23
# File 'lib/factual/write/insert.rb', line 21

def path
  "/t/#{@params[:table]}/insert"
end