Class: Voyager::Status

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(holdings) ⇒ Status

Returns a new instance of Status.



5
6
7
# File 'lib/status.rb', line 5

def initialize(holdings)
  @statuses = parse_holdings_status(holdings)
end

Instance Attribute Details

#statusesObject (readonly)

Returns the value of attribute statuses.



3
4
5
# File 'lib/status.rb', line 3

def statuses
  @statuses
end

Instance Method Details

#to_hash(args = {}) ⇒ Object



9
10
11
# File 'lib/status.rb', line 9

def to_hash(args = {})
  @statuses
end