Class: Ag::Connection

Inherits:
Object
  • Object
show all
Defined in:
lib/ag/connection.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#consumerObject (readonly)

Returns the value of attribute consumer.



7
8
9
# File 'lib/ag/connection.rb', line 7

def consumer
  @consumer
end

#created_atObject (readonly)

Returns the value of attribute created_at.



8
9
10
# File 'lib/ag/connection.rb', line 8

def created_at
  @created_at
end

#idObject (readonly)

Returns the value of attribute id.



5
6
7
# File 'lib/ag/connection.rb', line 5

def id
  @id
end

#producerObject (readonly)

Returns the value of attribute producer.



6
7
8
# File 'lib/ag/connection.rb', line 6

def producer
  @producer
end