Sha256: b3a4279a4ec37928bb8c053b75565a324fb256d296676ec47c6df520f9656a67

Contents?: true

Size: 456 Bytes

Versions: 2

Compression:

Stored size: 456 Bytes

Contents

module Garb
  module Management
    class Segment
      extend Attributes
      include PathAttribute

      attr_reader :session
      ga_attribute :name, :definition, :id => 'segmentId'

      def self.all(session = Session)
        feed = Feed.new(session, '/segments')
        feed.entries.map { |entry| new(entry, session) }
      end

      def initialize(entry, session)
        @entry = entry
        @session = session
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
garb-0.9.8 lib/garb/management/segment.rb
garb-0.9.7 lib/garb/management/segment.rb