Class: Swa::Record
- Inherits:
-
Object
- Object
- Swa::Record
- Includes:
- DataPresentation
- Defined in:
- lib/swa/record.rb
Direct Known Subclasses
Class Method Summary collapse
Instance Method Summary collapse
- #data ⇒ Object
-
#initialize(aws_record) ⇒ Record
constructor
A new instance of Record.
Constructor Details
#initialize(aws_record) ⇒ Record
Returns a new instance of Record.
12 13 14 |
# File 'lib/swa/record.rb', line 12 def initialize(aws_record) @aws_record = aws_record end |
Class Method Details
.list(records) ⇒ Object
8 9 10 |
# File 'lib/swa/record.rb', line 8 def self.list(records) records.lazy.map(&method(:new)) end |
Instance Method Details
#data ⇒ Object
18 19 20 |
# File 'lib/swa/record.rb', line 18 def data camelize_keys(aws_record.to_h) end |