Class: Btce::Types::Rights
- Inherits:
-
Object
- Object
- Btce::Types::Rights
- Defined in:
- lib/btce/types.rb
Instance Method Summary collapse
- #info? ⇒ Boolean
-
#initialize(data) ⇒ Rights
constructor
from Response.return.
- #to_s ⇒ Object
- #trade? ⇒ Boolean
- #withdraw? ⇒ Boolean
Constructor Details
#initialize(data) ⇒ Rights
from Response.return
64 65 66 |
# File 'lib/btce/types.rb', line 64 def initialize(data) # from Response.return @rights = data['rights'] end |
Instance Method Details
#info? ⇒ Boolean
52 53 54 |
# File 'lib/btce/types.rb', line 52 def info? @rights['info'].zero? ? false : true end |
#to_s ⇒ Object
68 69 70 |
# File 'lib/btce/types.rb', line 68 def to_s @rights.to_s end |
#trade? ⇒ Boolean
56 57 58 |
# File 'lib/btce/types.rb', line 56 def trade? @rights['trade'].zero? ? false : true end |
#withdraw? ⇒ Boolean
60 61 62 |
# File 'lib/btce/types.rb', line 60 def withdraw? @rights['withdraw'].zero? ? false : true end |