Sha256: c1ad14a78669cfbc84ac9d59b056535a4e313f127ff8485023b435a3f13c2b9a

Contents?: true

Size: 637 Bytes

Versions: 2

Compression:

Stored size: 637 Bytes

Contents

module FbGraph
  class Privacy
    include Comparison
    include Serialization

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

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

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

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
fb_graph-1.2.5 lib/fb_graph/privacy.rb
fb_graph-1.2.4 lib/fb_graph/privacy.rb