Class: Ag::Connection
- Inherits:
-
Object
- Object
- Ag::Connection
- Defined in:
- lib/ag/connection.rb
Instance Attribute Summary collapse
-
#consumer ⇒ Object
readonly
Returns the value of attribute consumer.
-
#created_at ⇒ Object
readonly
Returns the value of attribute created_at.
-
#id ⇒ Object
readonly
Returns the value of attribute id.
-
#producer ⇒ Object
readonly
Returns the value of attribute producer.
Instance Method Summary collapse
-
#initialize(attributes = {}) ⇒ Connection
constructor
A new instance of Connection.
Constructor Details
#initialize(attributes = {}) ⇒ Connection
Returns a new instance of Connection.
10 11 12 13 14 15 |
# File 'lib/ag/connection.rb', line 10 def initialize(attributes = {}) @id = attributes[:id] @producer = attributes[:producer] @consumer = attributes[:consumer] @created_at = attributes[:created_at] end |
Instance Attribute Details
#consumer ⇒ Object (readonly)
Returns the value of attribute consumer.
7 8 9 |
# File 'lib/ag/connection.rb', line 7 def consumer @consumer end |
#created_at ⇒ Object (readonly)
Returns the value of attribute created_at.
8 9 10 |
# File 'lib/ag/connection.rb', line 8 def created_at @created_at end |
#id ⇒ Object (readonly)
Returns the value of attribute id.
5 6 7 |
# File 'lib/ag/connection.rb', line 5 def id @id end |
#producer ⇒ Object (readonly)
Returns the value of attribute producer.
6 7 8 |
# File 'lib/ag/connection.rb', line 6 def producer @producer end |