Class: SDM::AccountAttachmentGetResponse

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

Overview

AccountAttachmentGetResponse returns a requested AccountAttachment.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

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

Returns a new instance of AccountAttachmentGetResponse.



909
910
911
912
913
914
915
916
917
# File 'lib/models/porcelain.rb', line 909

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

Instance Attribute Details

#account_attachmentObject

The requested AccountAttachment.



903
904
905
# File 'lib/models/porcelain.rb', line 903

def 
  @account_attachment
end

#metaObject

Reserved for future use.



905
906
907
# File 'lib/models/porcelain.rb', line 905

def meta
  @meta
end

#rate_limitObject

Rate limit information.



907
908
909
# File 'lib/models/porcelain.rb', line 907

def rate_limit
  @rate_limit
end

Instance Method Details

#to_json(options = {}) ⇒ Object



919
920
921
922
923
924
925
# File 'lib/models/porcelain.rb', line 919

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