Class: SDM::AccountAttachmentCreateResponse

Inherits:
Object
  • Object
show all
Defined in:
lib/models/porcelain.rb

Overview

AccountAttachmentCreateResponse reports how the AccountAttachments were created in the system.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(account_attachment: nil, meta: nil, rate_limit: nil) ⇒ AccountAttachmentCreateResponse

Returns a new instance of AccountAttachmentCreateResponse.



584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
# File 'lib/models/porcelain.rb', line 584

def initialize(
  account_attachment: nil,
  meta: nil,
  rate_limit: nil
)
  if  != nil
    @account_attachment = 
  end
  if meta != nil
    @meta = meta
  end
  if rate_limit != nil
    @rate_limit = rate_limit
  end
end

Instance Attribute Details

#account_attachmentObject

The created AccountAttachment.



578
579
580
# File 'lib/models/porcelain.rb', line 578

def 
  @account_attachment
end

#metaObject

Reserved for future use.



580
581
582
# File 'lib/models/porcelain.rb', line 580

def meta
  @meta
end

#rate_limitObject

Rate limit information.



582
583
584
# File 'lib/models/porcelain.rb', line 582

def rate_limit
  @rate_limit
end

Instance Method Details

#to_json(options = {}) ⇒ Object



600
601
602
603
604
605
606
# File 'lib/models/porcelain.rb', line 600

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