Class: Factual::Write::Flag

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

Constant Summary collapse

VALID_KEYS =
[:table, :factual_id, :data, :problem, :user, :comment, :debug, :reference, :fields, :preferred]

Instance Method Summary collapse

Methods inherited from Base

#body, #write

Constructor Details

#initialize(api, params) ⇒ Flag

Returns a new instance of Flag.



6
7
8
9
# File 'lib/factual/write/flag.rb', line 6

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

Instance Method Details

#pathObject



17
18
19
# File 'lib/factual/write/flag.rb', line 17

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