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.
218 219 220 221 |
# File 'lib/apollo_commons_ruby/TemplatesHelper.rb', line 218 def initialize(item_id, data) @itemID = item_id @data = data end |
Instance Method Details
#to_json ⇒ Object
223 224 225 226 227 228 229 230 |
# File 'lib/apollo_commons_ruby/TemplatesHelper.rb', line 223 def to_json body = { "itemID"=> @itemID, "data"=> @data, "isBase64Encoded"=> "true" } body.to_json end |