Class: Everybit::Collection
- Inherits:
-
Object
- Object
- Everybit::Collection
- Defined in:
- lib/everybit/collection.rb
Instance Attribute Summary collapse
-
#code ⇒ Object
readonly
Returns the value of attribute code.
-
#data ⇒ Object
readonly
Returns the value of attribute data.
-
#status ⇒ Object
readonly
Returns the value of attribute status.
Instance Method Summary collapse
-
#initialize(code, status, data) ⇒ Collection
constructor
A new instance of Collection.
- #inspect ⇒ Object
Constructor Details
#initialize(code, status, data) ⇒ Collection
Returns a new instance of Collection.
6 7 8 9 10 |
# File 'lib/everybit/collection.rb', line 6 def initialize(code, status, data) @code = code @status = status @data = data end |
Instance Attribute Details
#code ⇒ Object (readonly)
Returns the value of attribute code.
4 5 6 |
# File 'lib/everybit/collection.rb', line 4 def code @code end |
#data ⇒ Object (readonly)
Returns the value of attribute data.
4 5 6 |
# File 'lib/everybit/collection.rb', line 4 def data @data end |
#status ⇒ Object (readonly)
Returns the value of attribute status.
4 5 6 |
# File 'lib/everybit/collection.rb', line 4 def status @status end |
Instance Method Details
#inspect ⇒ Object
12 13 14 |
# File 'lib/everybit/collection.rb', line 12 def inspect() "#<#{self.class}> DATA: #{@data}" end |