class Ingenico::Connect::SDK::Domain::Dispute::UploadDisputeFileResponse

@attr [String] dispute_id @attr [String] file_id

Attributes

dispute_id[RW]
file_id[RW]

Public Instance Methods

from_hash(hash) click to toggle source
# File lib/ingenico/connect/sdk/domain/dispute/upload_dispute_file_response.rb, line 27
def from_hash(hash)
  super
  if hash.has_key? 'disputeId'
    @dispute_id = hash['disputeId']
  end
  if hash.has_key? 'fileId'
    @file_id = hash['fileId']
  end
end
to_h() click to toggle source

@return (Hash)

Calls superclass method Ingenico::Connect::SDK::DataObject#to_h
# File lib/ingenico/connect/sdk/domain/dispute/upload_dispute_file_response.rb, line 20
def to_h
  hash = super
  hash['disputeId'] = @dispute_id unless @dispute_id.nil?
  hash['fileId'] = @file_id unless @file_id.nil?
  hash
end