Class: FinApps::REST::ScreeningMetadatas
- Inherits:
-
FinAppsCore::REST::Resources
- Object
- FinAppsCore::REST::Resources
- FinApps::REST::ScreeningMetadatas
- Defined in:
- lib/finapps/rest/screening_metadatas.rb
Overview
:nodoc:
Instance Method Summary collapse
Instance Method Details
#create(id, key, value) ⇒ Object
14 15 16 17 18 19 20 21 |
# File 'lib/finapps/rest/screening_metadatas.rb', line 14 def create(id, key, value) not_blank(id, :session_id) not_blank(key, :key) not_blank(value, :value) path = "screenings/#{ERB::Util.url_encode(id)}/meta" super({key: key, value: value}, path) end |
#destroy(id, key) ⇒ Object
23 24 25 26 27 28 29 |
# File 'lib/finapps/rest/screening_metadatas.rb', line 23 def destroy(id, key) not_blank(id, :session_id) not_blank(key, :key) path = "screenings/#{ERB::Util.url_encode(id)}/meta/#{ERB::Util.url_encode(key)}" super(nil, path) end |
#show(id, key) ⇒ Object
6 7 8 9 10 11 12 |
# File 'lib/finapps/rest/screening_metadatas.rb', line 6 def show(id, key) not_blank(id, :session_id) not_blank(key, :key) path = "screenings/#{ERB::Util.url_encode(id)}/meta/#{ERB::Util.url_encode(key)}" super(nil, path) end |