Class: Factual::Write::Flag
Constant Summary collapse
- PROBLEMS =
[:duplicate, :nonexistent, :inaccurate, :inappropriate, :spam, :other]
- VALID_KEYS =
[:table, :factual_id, :problem, :user, :comment, :debug, :reference]
Instance Method Summary collapse
-
#initialize(api, params) ⇒ Flag
constructor
A new instance of Flag.
- #path ⇒ Object
Methods inherited from Base
Constructor Details
#initialize(api, params) ⇒ Flag
Returns a new instance of Flag.
9 10 11 12 |
# File 'lib/factual/write/flag.rb', line 9 def initialize(api, params) validate_params(params) super(api, params) end |
Instance Method Details
#path ⇒ Object
20 21 22 |
# File 'lib/factual/write/flag.rb', line 20 def path "/t/#{@params[:table]}/#{@params[:factual_id]}/flag" end |