Sha256: 033c20d970b46dfb235971c46e12234bd1ff30d3e966942f72ac212f9dc13e65

Contents?: true

Size: 350 Bytes

Versions: 76

Compression:

Stored size: 350 Bytes

Contents

module FbGraph
  class AdKeyword < Node
    extend Searchable

    attr_accessor :name, :description

    def initialize(identifier, attributes = {})
      super

      %w(name description).each do |field|
        self.send("#{field}=", attributes[field.to_sym])
      end
    end

    def topic_keyword?
      (name =~ /^#/) == 0
    end
  end
end

Version data entries

76 entries across 76 versions & 1 rubygems

Version Path
fb_graph-2.7.17 lib/fb_graph/ad_keyword.rb
fb_graph-2.7.16 lib/fb_graph/ad_keyword.rb
fb_graph-2.7.15 lib/fb_graph/ad_keyword.rb
fb_graph-2.7.14 lib/fb_graph/ad_keyword.rb
fb_graph-2.7.13 lib/fb_graph/ad_keyword.rb
fb_graph-2.7.12 lib/fb_graph/ad_keyword.rb
fb_graph-2.7.11 lib/fb_graph/ad_keyword.rb
fb_graph-2.7.10 lib/fb_graph/ad_keyword.rb
fb_graph-2.7.9 lib/fb_graph/ad_keyword.rb
fb_graph-2.7.8 lib/fb_graph/ad_keyword.rb
fb_graph-2.7.7 lib/fb_graph/ad_keyword.rb
fb_graph-2.7.6 lib/fb_graph/ad_keyword.rb
fb_graph-2.7.5 lib/fb_graph/ad_keyword.rb
fb_graph-2.7.4 lib/fb_graph/ad_keyword.rb
fb_graph-2.7.3 lib/fb_graph/ad_keyword.rb
fb_graph-2.7.2 lib/fb_graph/ad_keyword.rb
fb_graph-2.7.1 lib/fb_graph/ad_keyword.rb
fb_graph-2.7.0 lib/fb_graph/ad_keyword.rb
fb_graph-2.6.7 lib/fb_graph/ad_keyword.rb
fb_graph-2.6.6 lib/fb_graph/ad_keyword.rb