Sha256: c950c79cca24ed0b6ac24091be2900f9db32c0c1de0002de602308a1514b704d

Contents?: true

Size: 495 Bytes

Versions: 66

Compression:

Stored size: 495 Bytes

Contents

module FbGraph
  class Targeting
    include Comparison

    attr_accessor :country, :city, :region, :locale

    def initialize(attributes = {})
      @country = attributes[:country]
      @city    = attributes[:city]
      @region  = attributes[:region]
      @locale  = attributes[:locale]
    end

    def to_hash(options = {})
      {
        :country => self.country,
        :city    => self.city,
        :region  => self.region,
        :locale  => self.locale
      }
    end
  end
end

Version data entries

66 entries across 66 versions & 1 rubygems

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