Class: PoliPage::InlineModeInput
- Inherits:
-
Data
- Object
- Data
- PoliPage::InlineModeInput
- 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
-
#data ⇒ Object
readonly
Returns the value of attribute data.
-
#format ⇒ Object
readonly
Returns the value of attribute format.
-
#idempotency_key ⇒ Object
readonly
Returns the value of attribute idempotency_key.
-
#locale ⇒ Object
readonly
Returns the value of attribute locale.
-
#metadata ⇒ Object
readonly
Returns the value of attribute metadata.
-
#orientation ⇒ Object
readonly
Returns the value of attribute orientation.
-
#template ⇒ Object
readonly
Returns the value of attribute template.
Class Method Summary collapse
- ._strict_new ⇒ Object
- .new(template:, data:, format: nil, orientation: nil, locale: nil, metadata: nil, idempotency_key: nil) ⇒ Object
Instance Method Summary collapse
Instance Attribute Details
#data ⇒ Object (readonly)
Returns the value of attribute data
7 8 9 |
# File 'lib/poli_page/inputs/inline_mode_input.rb', line 7 def data @data end |
#format ⇒ Object (readonly)
Returns the value of attribute format
7 8 9 |
# File 'lib/poli_page/inputs/inline_mode_input.rb', line 7 def format @format end |
#idempotency_key ⇒ Object (readonly)
Returns the value of attribute idempotency_key
7 8 9 |
# File 'lib/poli_page/inputs/inline_mode_input.rb', line 7 def idempotency_key @idempotency_key end |
#locale ⇒ Object (readonly)
Returns the value of attribute locale
7 8 9 |
# File 'lib/poli_page/inputs/inline_mode_input.rb', line 7 def locale @locale end |
#metadata ⇒ Object (readonly)
Returns the value of attribute metadata
7 8 9 |
# File 'lib/poli_page/inputs/inline_mode_input.rb', line 7 def @metadata end |
#orientation ⇒ Object (readonly)
Returns the value of attribute orientation
7 8 9 |
# File 'lib/poli_page/inputs/inline_mode_input.rb', line 7 def orientation @orientation end |
#template ⇒ Object (readonly)
Returns the value of attribute template
7 8 9 |
# File 'lib/poli_page/inputs/inline_mode_input.rb', line 7 def template @template end |
Class Method Details
._strict_new ⇒ Object
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_h ⇒ Object
16 17 18 |
# File 'lib/poli_page/inputs/inline_mode_input.rb', line 16 def to_h super.compact end |