Class: Factual::Write::Clear

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

Constant Summary collapse

VALID_KEYS =
[
  :table, :user,
  :factual_id, :fields,
  :clear_blanks,
  :comment, :reference
]

Instance Method Summary collapse

Methods inherited from Base

#body, #write

Constructor Details

#initialize(api, params) ⇒ Clear

Returns a new instance of Clear.



11
12
13
14
# File 'lib/factual/write/clear.rb', line 11

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

Instance Method Details

#pathObject



22
23
24
# File 'lib/factual/write/clear.rb', line 22

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