Class: Subscription

Inherits:
Object
  • Object
show all
Defined in:
lib/amaze/subscription.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(args) ⇒ Subscription

Returns a new instance of Subscription.



5
6
7
8
9
10
11
# File 'lib/amaze/subscription.rb', line 5

def initialize(args)
  @owner = args["Owner"]
  @protocol = args["Protocol"]
  @topicarn = args["TopicArn"]
  @endpoint = args["Endpoint"]
  @subarn = args["SubscriptionArn"]
end

Instance Attribute Details

#endpointObject

Returns the value of attribute endpoint.



3
4
5
# File 'lib/amaze/subscription.rb', line 3

def endpoint
  @endpoint
end

#ownerObject

Returns the value of attribute owner.



3
4
5
# File 'lib/amaze/subscription.rb', line 3

def owner
  @owner
end

#protocolObject

Returns the value of attribute protocol.



3
4
5
# File 'lib/amaze/subscription.rb', line 3

def protocol
  @protocol
end

#subarnObject

Returns the value of attribute subarn.



3
4
5
# File 'lib/amaze/subscription.rb', line 3

def subarn
  @subarn
end

#topicarnObject

Returns the value of attribute topicarn.



3
4
5
# File 'lib/amaze/subscription.rb', line 3

def topicarn
  @topicarn
end

Instance Method Details

#to_sObject



13
14
15
# File 'lib/amaze/subscription.rb', line 13

def to_s
  "Subscription: Owner - #{@owner} : Protocol - #{@protocol} : TopicARN - #{@topicarn} : EndPoint - #{@endpoint} : SubscriptionARN - #{@subarn}"
end