Module: RockRMS::Client::HtmlContent

Included in:
RockRMS::Client
Defined in:
lib/rock_rms/resources/html_content.rb

Instance Method Summary collapse

Instance Method Details

#create_html_content(block_id:, content:) ⇒ Object



5
6
7
8
9
10
11
12
13
14
15
# File 'lib/rock_rms/resources/html_content.rb', line 5

def create_html_content(
  block_id:,
  content:
)
  options = {
    'BlockId' => block_id,
    'Content' => content
  }

  post(html_content_path, options)
end

#html_content_path(id = nil) ⇒ Object



17
18
19
# File 'lib/rock_rms/resources/html_content.rb', line 17

def html_content_path(id = nil)
  id ? "HtmlContents/#{id}" : 'HtmlContents'
end