Class: Aptly::Representation
- Inherits:
-
OpenStruct
- Object
- OpenStruct
- Aptly::Representation
- Defined in:
- lib/aptly/representation.rb
Overview
Base representation class to coerce transactional types into useful objects.
Direct Known Subclasses
Instance Attribute Summary collapse
-
#connection ⇒ Connection
The connection used for instance operations.
Instance Method Summary collapse
-
#initialize(connection, hash = {}) ⇒ Representation
constructor
Initialize a new representation.
Constructor Details
#initialize(connection, hash = {}) ⇒ Representation
Initialize a new representation
14 15 16 17 |
# File 'lib/aptly/representation.rb', line 14 def initialize(connection, hash = {}) @connection = connection super(hash) end |
Instance Attribute Details
#connection ⇒ Connection
Returns the connection used for instance operations.
9 10 11 |
# File 'lib/aptly/representation.rb', line 9 def connection @connection end |