Module: RockRMS::Client::ContentChannel
- Included in:
- RockRMS::Client
- Defined in:
- lib/rock_rms/resources/content_channel.rb
Instance Method Summary collapse
- #find_content_channel(id) ⇒ Object
- #list_content_channels(options = {}) ⇒ Object
- #update_content_channel(id:, foreign_key: nil) ⇒ Object
Instance Method Details
#find_content_channel(id) ⇒ Object
9 10 11 12 |
# File 'lib/rock_rms/resources/content_channel.rb', line 9 def find_content_channel(id) res = get(content_channel_path(id)) Response::ContentChannel.format(res) end |
#list_content_channels(options = {}) ⇒ Object
4 5 6 7 |
# File 'lib/rock_rms/resources/content_channel.rb', line 4 def list_content_channels( = {}) res = get(content_channel_path, ) Response::ContentChannel.format(res) end |
#update_content_channel(id:, foreign_key: nil) ⇒ Object
14 15 16 17 18 19 20 21 |
# File 'lib/rock_rms/resources/content_channel.rb', line 14 def update_content_channel( id:, foreign_key: nil ) = { foreign_key: foreign_key }.compact patch(content_channel_path(id), ) end |