class Bitex::KycFile
Documentation here!
Attributes
content_type[RW]
@!attribute content_type
@return [String] Content type.
file_name[RW]
@!attribute file_name
@return [String] file name.
file_size[RW]
@!attribute file_size
@return [Integer] file size.
id[RW]
@!attribute id
@return [Integer] This KycFile's unique ID.
kyc_profile_id[RW]
@!attribute id
@return [Integer] This KycProfile's unique ID.
url[RW]
@!attribute url
@return [String] url to photo file.
Public Class Methods
all()
click to toggle source
# File lib/bitex/kyc_file.rb, line 36 def self.all Api.private(:get, '/private/kyc_files').map { |file| from_json(file) } end
from_json(json)
click to toggle source
# File lib/bitex/kyc_file.rb, line 30 def self.from_json(json) new.tap do |file| file.id, file.kyc_profile_id, file.url, file.file_name, file.content_type, file.file_size = json end end