class Fog::AWS::SNS::Topics

Public Instance Methods

all() click to toggle source
# File lib/fog/aws/models/sns/topics.rb, line 9
def all
  data = service.list_topics.body["Topics"].map { |t| {"id" => t} } #This is an array, but it needs to be an array of hashes for #load

  load(data)
end
get(id) click to toggle source
# File lib/fog/aws/models/sns/topics.rb, line 15
def get(id)
  if data = service.get_topic_attributes(id).body["Attributes"]
    new(data)
  end
end