Class: FbGraph::Privacy
- Inherits:
-
Object
- Object
- FbGraph::Privacy
- Includes:
- Comparison, Serialization
- Defined in:
- lib/fb_graph/privacy.rb
Instance Attribute Summary collapse
-
#allow ⇒ Object
Returns the value of attribute allow.
-
#deny ⇒ Object
Returns the value of attribute deny.
-
#friends ⇒ Object
Returns the value of attribute friends.
-
#networks ⇒ Object
Returns the value of attribute networks.
-
#value ⇒ Object
Returns the value of attribute value.
Instance Method Summary collapse
-
#initialize(attributes = {}) ⇒ Privacy
constructor
A new instance of Privacy.
- #to_hash(options = {}) ⇒ Object
Methods included from Serialization
Methods included from Comparison
Constructor Details
#initialize(attributes = {}) ⇒ Privacy
Returns a new instance of Privacy.
8 9 10 11 12 13 14 15 |
# File 'lib/fb_graph/privacy.rb', line 8 def initialize(attributes = {}) @value = attributes[:value] @description = attributes[:description] @friends = attributes[:friends] @networks = attributes[:networks] @allow = attributes[:allow] @deny = attributes[:deny] end |
Instance Attribute Details
#allow ⇒ Object
Returns the value of attribute allow.
6 7 8 |
# File 'lib/fb_graph/privacy.rb', line 6 def allow @allow end |
#deny ⇒ Object
Returns the value of attribute deny.
6 7 8 |
# File 'lib/fb_graph/privacy.rb', line 6 def deny @deny end |
#friends ⇒ Object
Returns the value of attribute friends.
6 7 8 |
# File 'lib/fb_graph/privacy.rb', line 6 def friends @friends end |
#networks ⇒ Object
Returns the value of attribute networks.
6 7 8 |
# File 'lib/fb_graph/privacy.rb', line 6 def networks @networks end |
#value ⇒ Object
Returns the value of attribute value.
6 7 8 |
# File 'lib/fb_graph/privacy.rb', line 6 def value @value end |
Instance Method Details
#to_hash(options = {}) ⇒ Object
17 18 19 20 21 22 23 24 25 |
# File 'lib/fb_graph/privacy.rb', line 17 def to_hash( = {}) { :value => self.value, :friends => self.friends, :networks => self.networks, :allow => self.allow, :deny => self.deny } end |