Class: Bitex::KycFile
- Inherits:
-
Object
- Object
- Bitex::KycFile
- Defined in:
- lib/bitex/kyc_file.rb
Overview
Documentation here!
Instance Attribute Summary collapse
-
#content_type ⇒ String
Content type.
-
#file_name ⇒ String
File name.
-
#file_size ⇒ Integer
File size.
-
#id ⇒ Integer
This KycProfile’s unique ID.
-
#kyc_profile_id ⇒ Object
Returns the value of attribute kyc_profile_id.
-
#url ⇒ String
Url to photo file.
Class Method Summary collapse
Instance Attribute Details
#content_type ⇒ String
Returns Content type.
28 29 30 |
# File 'lib/bitex/kyc_file.rb', line 28 def content_type @content_type end |
#file_name ⇒ String
Returns file name.
20 21 22 |
# File 'lib/bitex/kyc_file.rb', line 20 def file_name @file_name end |
#file_size ⇒ Integer
Returns file size.
24 25 26 |
# File 'lib/bitex/kyc_file.rb', line 24 def file_size @file_size end |
#id ⇒ Integer
Returns This KycProfile’s unique ID.
8 9 10 |
# File 'lib/bitex/kyc_file.rb', line 8 def id @id end |
#kyc_profile_id ⇒ Object
Returns the value of attribute kyc_profile_id.
12 13 14 |
# File 'lib/bitex/kyc_file.rb', line 12 def kyc_profile_id @kyc_profile_id end |
#url ⇒ String
Returns url to photo file.
16 17 18 |
# File 'lib/bitex/kyc_file.rb', line 16 def url @url end |
Class Method Details
.all ⇒ Object
36 37 38 |
# 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) ⇒ Object
30 31 32 33 34 |
# 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 |