Class: PoliPage::InlineModeInput

Inherits:
Data
  • Object
show all
Defined in:
lib/poli_page/inputs/inline_mode_input.rb

Overview

Convenience value-object form of the inline-mode render input. Inline mode is only accepted by ‘client.render.preview` (sdk-ruby-plan.md §13 Phase 2); the render-to-document methods require project mode.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#dataObject (readonly)

Returns the value of attribute data

Returns:

  • (Object)

    the current value of data



7
8
9
# File 'lib/poli_page/inputs/inline_mode_input.rb', line 7

def data
  @data
end

#formatObject (readonly)

Returns the value of attribute format

Returns:

  • (Object)

    the current value of format



7
8
9
# File 'lib/poli_page/inputs/inline_mode_input.rb', line 7

def format
  @format
end

#idempotency_keyObject (readonly)

Returns the value of attribute idempotency_key

Returns:

  • (Object)

    the current value of idempotency_key



7
8
9
# File 'lib/poli_page/inputs/inline_mode_input.rb', line 7

def idempotency_key
  @idempotency_key
end

#localeObject (readonly)

Returns the value of attribute locale

Returns:

  • (Object)

    the current value of locale



7
8
9
# File 'lib/poli_page/inputs/inline_mode_input.rb', line 7

def locale
  @locale
end

#metadataObject (readonly)

Returns the value of attribute metadata

Returns:

  • (Object)

    the current value of metadata



7
8
9
# File 'lib/poli_page/inputs/inline_mode_input.rb', line 7

def 
  @metadata
end

#orientationObject (readonly)

Returns the value of attribute orientation

Returns:

  • (Object)

    the current value of orientation



7
8
9
# File 'lib/poli_page/inputs/inline_mode_input.rb', line 7

def orientation
  @orientation
end

#templateObject (readonly)

Returns the value of attribute template

Returns:

  • (Object)

    the current value of template



7
8
9
# File 'lib/poli_page/inputs/inline_mode_input.rb', line 7

def template
  @template
end

Class Method Details

._strict_newObject



22
# File 'lib/poli_page/inputs/inline_mode_input.rb', line 22

alias _strict_new new

.new(template:, data:, format: nil, orientation: nil, locale: nil, metadata: nil, idempotency_key: nil) ⇒ Object



24
25
26
27
28
29
# File 'lib/poli_page/inputs/inline_mode_input.rb', line 24

def new(template:, data:, format: nil, orientation: nil, locale: nil,
        metadata: nil, idempotency_key: nil)
  _strict_new(template: template, data: data, format: format,
              orientation: orientation, locale: locale, metadata: ,
              idempotency_key: idempotency_key)
end

Instance Method Details

#to_hObject



16
17
18
# File 'lib/poli_page/inputs/inline_mode_input.rb', line 16

def to_h
  super.compact
end