Class: Subscription
- Inherits:
-
Object
- Object
- Subscription
- Defined in:
- lib/amaze/subscription.rb
Instance Attribute Summary collapse
-
#endpoint ⇒ Object
Returns the value of attribute endpoint.
-
#owner ⇒ Object
Returns the value of attribute owner.
-
#protocol ⇒ Object
Returns the value of attribute protocol.
-
#subarn ⇒ Object
Returns the value of attribute subarn.
-
#topicarn ⇒ Object
Returns the value of attribute topicarn.
Instance Method Summary collapse
-
#initialize(args) ⇒ Subscription
constructor
A new instance of Subscription.
- #to_s ⇒ Object
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"] = args["SubscriptionArn"] end |
Instance Attribute Details
#endpoint ⇒ Object
Returns the value of attribute endpoint.
3 4 5 |
# File 'lib/amaze/subscription.rb', line 3 def endpoint @endpoint end |
#owner ⇒ Object
Returns the value of attribute owner.
3 4 5 |
# File 'lib/amaze/subscription.rb', line 3 def owner @owner end |
#protocol ⇒ Object
Returns the value of attribute protocol.
3 4 5 |
# File 'lib/amaze/subscription.rb', line 3 def protocol @protocol end |
#subarn ⇒ Object
Returns the value of attribute subarn.
3 4 5 |
# File 'lib/amaze/subscription.rb', line 3 def end |
#topicarn ⇒ Object
Returns the value of attribute topicarn.
3 4 5 |
# File 'lib/amaze/subscription.rb', line 3 def topicarn @topicarn end |
Instance Method Details
#to_s ⇒ Object
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 |