Class: ApplicationResponder

Inherits:
ActionController::Responder
  • Object
show all
Defined in:
lib/application_responder.rb

Instance Method Summary collapse

Instance Method Details

#to_jsonObject Also known as: to_occi_json


10
11
12
# File 'lib/application_responder.rb', line 10

def to_json
  custom_merge_and_render :occi_json
end

#to_occi_headerObject


2
3
4
# File 'lib/application_responder.rb', line 2

def to_occi_header
  custom_merge_and_render :occi_header
end

#to_textObject


6
7
8
# File 'lib/application_responder.rb', line 6

def to_text
  custom_merge_and_render :text
end

#to_uri_listObject


20
21
22
# File 'lib/application_responder.rb', line 20

def to_uri_list
  custom_merge_and_render :uri_list
end

#to_xmlObject Also known as: to_occi_xml


15
16
17
# File 'lib/application_responder.rb', line 15

def to_xml
  custom_merge_and_render :occi_xml
end