Class: SDM::AccountAttachmentCreateOptions
- Inherits:
-
Object
- Object
- SDM::AccountAttachmentCreateOptions
- Defined in:
- lib/models/porcelain.rb
Overview
AccountAttachmentCreateOptions specifies extra options for creating an AccountAttachment.
Instance Attribute Summary collapse
-
#overwrite ⇒ Object
Overwrite clears all account grants before the attachment.
Instance Method Summary collapse
-
#initialize(overwrite: nil) ⇒ AccountAttachmentCreateOptions
constructor
A new instance of AccountAttachmentCreateOptions.
- #to_json(options = {}) ⇒ Object
Constructor Details
#initialize(overwrite: nil) ⇒ AccountAttachmentCreateOptions
Returns a new instance of AccountAttachmentCreateOptions.
119 120 121 122 123 124 125 |
# File 'lib/models/porcelain.rb', line 119 def initialize( overwrite:nil \ ) if overwrite != nil @overwrite = overwrite end end |
Instance Attribute Details
#overwrite ⇒ Object
Overwrite clears all account grants before the attachment.
118 119 120 |
# File 'lib/models/porcelain.rb', line 118 def overwrite @overwrite end |
Instance Method Details
#to_json(options = {}) ⇒ Object
126 127 128 129 130 131 132 |
# File 'lib/models/porcelain.rb', line 126 def to_json(={}) hash = {} self.instance_variables.each do |var| hash[var.id2name.delete_prefix('@')] = self.instance_variable_get var end hash.to_json end |