Class: TheCity::TerminologyWriter

Inherits:
ApiWriter
  • Object
show all
Defined in:
lib/writers/terminology_writer.rb

Instance Attribute Summary

Attributes inherited from ApiWriter

#error_messages, #response_code

Instance Method Summary collapse

Methods inherited from ApiWriter

#delete_object, #save_object

Constructor Details

#initialize(data) ⇒ TerminologyWriter

Constructor.

Parameters:

  • data

    The json data to save.



8
9
10
11
12
13
# File 'lib/writers/terminology_writer.rb', line 8

def initialize(data)
  @url_action = :put
  @url_data_path = "/terminology/#{data[:term]}"   
  @url_data_params = data
  @updatable_fields = [:label]         
end