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.2.5 lib/fb_graph/ad_keyword.rb
fb_graph-2.2.4 lib/fb_graph/ad_keyword.rb
fb_graph-2.2.3 lib/fb_graph/ad_keyword.rb
fb_graph-2.2.2 lib/fb_graph/ad_keyword.rb
fb_graph-2.2.1 lib/fb_graph/ad_keyword.rb
fb_graph-2.2.0 lib/fb_graph/ad_keyword.rb
fb_graph-2.2.0.beta lib/fb_graph/ad_keyword.rb
fb_graph-2.2.0.alpha2 lib/fb_graph/ad_keyword.rb
fb_graph-2.2.0.alpha lib/fb_graph/ad_keyword.rb
fb_graph-2.1.13 lib/fb_graph/ad_keyword.rb
fb_graph-2.1.12 lib/fb_graph/ad_keyword.rb
fb_graph-2.1.11 lib/fb_graph/ad_keyword.rb
fb_graph-2.1.10 lib/fb_graph/ad_keyword.rb
fb_graph-2.1.9 lib/fb_graph/ad_keyword.rb
fb_graph-2.1.8 lib/fb_graph/ad_keyword.rb
fb_graph-2.1.7 lib/fb_graph/ad_keyword.rb