Class: Btce::Types::Rights

Inherits:
Object
  • Object
show all
Defined in:
lib/btce/types.rb

Instance Method Summary collapse

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

Returns:

  • (Boolean)


52
53
54
# File 'lib/btce/types.rb', line 52

def info?
  @rights['info'].zero? ? false : true
end

#to_sObject



68
69
70
# File 'lib/btce/types.rb', line 68

def to_s
  @rights.to_s
end

#trade?Boolean

Returns:

  • (Boolean)


56
57
58
# File 'lib/btce/types.rb', line 56

def trade?
  @rights['trade'].zero? ? false : true
end

#withdraw?Boolean

Returns:

  • (Boolean)


60
61
62
# File 'lib/btce/types.rb', line 60

def withdraw?
  @rights['withdraw'].zero? ? false : true
end