Class: ConvertPresentationPayload
- Inherits:
-
Object
- Object
- ConvertPresentationPayload
- Defined in:
- lib/apollo_commons_ruby/TemplatesHelper.rb
Instance Method Summary collapse
-
#initialize(presentation, sourcePresentationType, targetPresentationType) ⇒ ConvertPresentationPayload
constructor
A new instance of ConvertPresentationPayload.
- #to_json ⇒ Object
Constructor Details
#initialize(presentation, sourcePresentationType, targetPresentationType) ⇒ ConvertPresentationPayload
Returns a new instance of ConvertPresentationPayload.
149 150 151 152 153 |
# File 'lib/apollo_commons_ruby/TemplatesHelper.rb', line 149 def initialize(presentation, sourcePresentationType, targetPresentationType) @presentation = presentation @sourcePresentationType = sourcePresentationType @targetPresentationType = targetPresentationType end |
Instance Method Details
#to_json ⇒ Object
155 156 157 158 159 160 161 162 |
# File 'lib/apollo_commons_ruby/TemplatesHelper.rb', line 155 def to_json body = { "presentation"=> @presentation, "sourcePresentationType"=> @sourcePresentationType, "targetPresentationType"=> @targetPresentationType } body.to_json end |