Class: Bitex::KycFile
- Inherits:
-
Object
- Object
- Bitex::KycFile
- Defined in:
- lib/bitex/kyc_file.rb
Instance Attribute Summary collapse
-
#content_type ⇒ Object
Returns the value of attribute content_type.
-
#file_name ⇒ Object
Returns the value of attribute file_name.
-
#file_size ⇒ Object
Returns the value of attribute file_size.
-
#id ⇒ Object
Returns the value of attribute id.
-
#kyc_profile_id ⇒ Object
Returns the value of attribute kyc_profile_id.
-
#url ⇒ Object
Returns the value of attribute url.
Class Method Summary collapse
Instance Attribute Details
#content_type ⇒ Object
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_name ⇒ Object
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_size ⇒ Object
Returns the value of attribute file_size.
3 4 5 |
# File 'lib/bitex/kyc_file.rb', line 3 def file_size @file_size end |
#id ⇒ Object
Returns the value of attribute id.
3 4 5 |
# File 'lib/bitex/kyc_file.rb', line 3 def id @id end |
#kyc_profile_id ⇒ Object
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 |
#url ⇒ Object
Returns the value of attribute url.
3 4 5 |
# File 'lib/bitex/kyc_file.rb', line 3 def url @url end |
Class Method Details
.all ⇒ Object
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 |