Class: CreateCollectionItem
- Inherits:
-
Object
- Object
- CreateCollectionItem
- Defined in:
- lib/apollo_commons_ruby/TemplatesHelper.rb
Instance Method Summary collapse
-
#initialize(item_id, data) ⇒ CreateCollectionItem
constructor
A new instance of CreateCollectionItem.
- #to_json ⇒ Object
Constructor Details
#initialize(item_id, data) ⇒ CreateCollectionItem
Returns a new instance of CreateCollectionItem.
265 266 267 268 |
# File 'lib/apollo_commons_ruby/TemplatesHelper.rb', line 265 def initialize(item_id, data) @itemID = item_id @data = data end |
Instance Method Details
#to_json ⇒ Object
270 271 272 273 274 275 276 277 |
# File 'lib/apollo_commons_ruby/TemplatesHelper.rb', line 270 def to_json body = { "itemID"=> @itemID, "data"=> @data, "isBase64Encoded"=> "true" } body.to_json end |