Sha256: 43e293bee41090395ea546b62b87d793202ae2cb8ec139fa44a181e7af4c1290

Contents?: true

Size: 658 Bytes

Versions: 66

Compression:

Stored size: 658 Bytes

Contents

module FbGraph
  class Privacy
    include Comparison
    include Serialization

    attr_accessor :value, :friends, :networks, :allow, :deny

    def initialize(attributes = {})
      @value       = attributes[:value]
      @description = attributes[:description]
      @friends     = attributes[:friends]
      @networks    = attributes[:networks]
      @allow       = attributes[:allow]
      @deny        = attributes[:deny]
    end

    def to_hash(options = {})
      {
        :value => self.value,
        :friends => self.friends,
        :networks => self.networks,
        :allow => self.allow,
        :deny => self.deny
      }
    end
  end
end

Version data entries

66 entries across 66 versions & 1 rubygems

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