Class: Rpx::Lease

Inherits:
Hashie::Trash
  • Object
show all
Includes:
Hashie::Extensions::Coercion, Hashie::Extensions::IgnoreUndeclared
Defined in:
lib/rpx/lease.rb

Defined Under Namespace

Classes: Boolean

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.coerce(list_of_hash) ⇒ Object



45
46
47
48
49
# File 'lib/rpx/lease.rb', line 45

def self.coerce(list_of_hash)
  return self.coerce([list_of_hash]) unless list_of_hash.is_a?(Array)

  list_of_hash.map{ |h| self.new(h) }
end

Instance Method Details

#moved_out?Boolean

Returns:



51
52
53
# File 'lib/rpx/lease.rb', line 51

def moved_out?
  self.moveoutdate != nil
end