Class: Voyager::Status
- Inherits:
-
Object
- Object
- Voyager::Status
- Defined in:
- lib/status.rb
Instance Attribute Summary collapse
-
#statuses ⇒ Object
readonly
Returns the value of attribute statuses.
Instance Method Summary collapse
-
#initialize(holdings) ⇒ Status
constructor
A new instance of Status.
- #to_hash(args = {}) ⇒ Object
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
#statuses ⇒ Object (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 |