Class: HammerCLI::Output::RecordCollection
- Inherits:
-
Array
- Object
- Array
- HammerCLI::Output::RecordCollection
- Defined in:
- lib/hammer_cli/output/record_collection.rb
Instance Attribute Summary collapse
-
#meta ⇒ Object
Returns the value of attribute meta.
Instance Method Summary collapse
-
#initialize(data, options = {}) ⇒ RecordCollection
constructor
A new instance of RecordCollection.
Constructor Details
#initialize(data, options = {}) ⇒ RecordCollection
Returns a new instance of RecordCollection.
30 31 32 33 34 35 36 37 |
# File 'lib/hammer_cli/output/record_collection.rb', line 30 def initialize(data, ={}) super [data].flatten(1) if .has_key?(:meta) && [:meta].class <= MetaData @meta = [:meta] else @meta = MetaData.new() end end |
Instance Attribute Details
#meta ⇒ Object
Returns the value of attribute meta.
28 29 30 |
# File 'lib/hammer_cli/output/record_collection.rb', line 28 def @meta end |