Class: FacebookTopics::Topic
- Inherits:
-
Object
- Object
- FacebookTopics::Topic
- Defined in:
- lib/facebook_topics/results/topic.rb
Instance Attribute Summary collapse
-
#result ⇒ Object
Returns the value of attribute result.
Instance Method Summary collapse
- #id ⇒ Object
-
#initialize(result) ⇒ Topic
constructor
A new instance of Topic.
- #name ⇒ Object
Constructor Details
#initialize(result) ⇒ Topic
Returns a new instance of Topic.
6 7 8 |
# File 'lib/facebook_topics/results/topic.rb', line 6 def initialize(result) @result = result end |
Instance Attribute Details
#result ⇒ Object
Returns the value of attribute result.
4 5 6 |
# File 'lib/facebook_topics/results/topic.rb', line 4 def result @result end |
Instance Method Details
#id ⇒ Object
10 11 12 |
# File 'lib/facebook_topics/results/topic.rb', line 10 def id result["id"] end |
#name ⇒ Object
14 15 16 |
# File 'lib/facebook_topics/results/topic.rb', line 14 def name result["name"] end |