class Nem::Model::UnlockedInfo

Attributes

max_unlocked[R]
num_unlocked[R]

Public Class Methods

new_from_unlocked_info(hash) click to toggle source
# File lib/nem/model/unlocked_info.rb, line 8
def self.new_from_unlocked_info(hash)
  new(
    max_unlocked: hash[:'max-unlocked'],
    num_unlocked: hash[:'num-unlocked']
  )
end

Public Instance Methods

freeslot() click to toggle source
# File lib/nem/model/unlocked_info.rb, line 19
def freeslot
  @max_unlocked - @num_unlocked
end
has_freeslot?() click to toggle source
# File lib/nem/model/unlocked_info.rb, line 15
def has_freeslot?
  ! @max_unlocked == @num_unlocked
end