class Circuitry::Topic

Attributes

arn[R]

Public Class Methods

find(name) click to toggle source
# File lib/circuitry/topic.rb, line 27
def self.find(name)
  new(Finder.new(name).find.topic_arn)
end
new(arn) click to toggle source
# File lib/circuitry/topic.rb, line 23
def initialize(arn)
  @arn = arn
end

Public Instance Methods

==(other) click to toggle source
# File lib/circuitry/topic.rb, line 35
def ==(other)
  other.hash == hash
end
hash() click to toggle source
# File lib/circuitry/topic.rb, line 39
def hash
  [self.class, arn].hash
end
name() click to toggle source
# File lib/circuitry/topic.rb, line 31
def name
  @name ||= arn.split(':').last
end