class SDM::AccountAttachmentCreateOptions

AccountAttachmentCreateOptions specifies extra options for creating an AccountAttachment.

Attributes

overwrite[RW]

Overwrite clears all account grants before the attachment.

Public Class Methods

new( overwrite:nil \ ) click to toggle source
# File lib/models/porcelain.rb, line 119
def initialize(
        overwrite:nil \
)
        if overwrite != nil
                @overwrite = overwrite
        end
end

Public Instance Methods

to_json(options={}) click to toggle source
# File lib/models/porcelain.rb, line 126
def to_json(options={})
        hash = {}
        self.instance_variables.each do |var|
            hash[var.id2name.delete_prefix('@')] = self.instance_variable_get var
        end
        hash.to_json
end