Sha256: e2f8e0cd702d6d8865d22bacba6dfa619423ec427c127f14d84048ff35b37cd4

Contents?: true

Size: 753 Bytes

Versions: 16

Compression:

Stored size: 753 Bytes

Contents

module Fog
  module Parsers
    module AWS
      module SNS
        class GetTopicAttributes < Fog::Parsers::Base
          def reset
            @response = { 'Attributes' => {} }
          end

          def end_element(name)
            case name
            when 'key'
              @key = @value.rstrip
            when 'value'
              case @key
              when 'SubscriptionsConfirmed', 'SubscriptionsDeleted', 'SubscriptionsPending'
                @response['Attributes'][@key] = @value.rstrip.to_i
              else
                @response['Attributes'][@key] = @value.rstrip
              end
            when 'RequestId'
              @response[name] = @value
            end
          end
        end
      end
    end
  end
end

Version data entries

16 entries across 16 versions & 4 rubygems

Version Path
vagrant-cloudstack-1.1.0 vendor/bundle/gems/fog-1.22.1/lib/fog/aws/parsers/sns/get_topic_attributes.rb
fog-1.26.0 lib/fog/aws/parsers/sns/get_topic_attributes.rb
fog-1.25.0 lib/fog/aws/parsers/sns/get_topic_attributes.rb
nsidc-fog-1.24.1 lib/fog/aws/parsers/sns/get_topic_attributes.rb
fog-1.24.0 lib/fog/aws/parsers/sns/get_topic_attributes.rb
ns-fog-1.22.11 lib/fog/aws/parsers/sns/get_topic_attributes.rb
ns-fog-1.22.10 lib/fog/aws/parsers/sns/get_topic_attributes.rb
ns-fog-1.22.9 lib/fog/aws/parsers/sns/get_topic_attributes.rb
ns-fog-1.22.8 lib/fog/aws/parsers/sns/get_topic_attributes.rb
ns-fog-1.22.7 lib/fog/aws/parsers/sns/get_topic_attributes.rb
ns-fog-1.22.6 lib/fog/aws/parsers/sns/get_topic_attributes.rb
fog-1.23.0 lib/fog/aws/parsers/sns/get_topic_attributes.rb
ns-fog-1.22.4 lib/fog/aws/parsers/sns/get_topic_attributes.rb
ns-fog-1.22.3 lib/fog/aws/parsers/sns/get_topic_attributes.rb
ns-fog-1.22.2 lib/fog/aws/parsers/sns/get_topic_attributes.rb
fog-1.22.1 lib/fog/aws/parsers/sns/get_topic_attributes.rb