Class: Bitex::KycFile

Inherits:
Object
  • Object
show all
Defined in:
lib/bitex/kyc_file.rb

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#content_typeObject

Returns the value of attribute content_type.



3
4
5
# File 'lib/bitex/kyc_file.rb', line 3

def content_type
  @content_type
end

#file_nameObject

Returns the value of attribute file_name.



3
4
5
# File 'lib/bitex/kyc_file.rb', line 3

def file_name
  @file_name
end

#file_sizeObject

Returns the value of attribute file_size.



3
4
5
# File 'lib/bitex/kyc_file.rb', line 3

def file_size
  @file_size
end

#idObject

Returns the value of attribute id.



3
4
5
# File 'lib/bitex/kyc_file.rb', line 3

def id
  @id
end

#kyc_profile_idObject

Returns the value of attribute kyc_profile_id.



3
4
5
# File 'lib/bitex/kyc_file.rb', line 3

def kyc_profile_id
  @kyc_profile_id
end

#urlObject

Returns the value of attribute url.



3
4
5
# File 'lib/bitex/kyc_file.rb', line 3

def url
  @url
end

Class Method Details

.allObject



13
14
15
# File 'lib/bitex/kyc_file.rb', line 13

def self.all
  Api.private(:get, "/private/kyc_files").collect{|x| from_json(x) }
end

.from_json(json) ⇒ Object



6
7
8
9
10
11
# File 'lib/bitex/kyc_file.rb', line 6

def self.from_json(json)
  t = new
  t.id, t.kyc_profile_id, t.url, t.file_name, t.content_type, t.file_size =
    json
  t
end