Class: Cufinder::CaaActivity
- Inherits:
-
Object
- Object
- Cufinder::CaaActivity
- Defined in:
- lib/cufinder_ruby/types.rb
Overview
CAA Activity
Instance Attribute Summary collapse
-
#activity_comments_count ⇒ Object
Returns the value of attribute activity_comments_count.
-
#activity_hashtags ⇒ Object
Returns the value of attribute activity_hashtags.
-
#activity_headline ⇒ Object
Returns the value of attribute activity_headline.
-
#activity_id ⇒ Object
Returns the value of attribute activity_id.
-
#activity_images ⇒ Object
Returns the value of attribute activity_images.
-
#activity_is_video ⇒ Object
Returns the value of attribute activity_is_video.
-
#activity_posted_at ⇒ Object
Returns the value of attribute activity_posted_at.
-
#activity_reactions_count ⇒ Object
Returns the value of attribute activity_reactions_count.
-
#activity_reposts_count ⇒ Object
Returns the value of attribute activity_reposts_count.
-
#activity_text ⇒ Object
Returns the value of attribute activity_text.
-
#activity_top_comments ⇒ Object
Returns the value of attribute activity_top_comments.
-
#activity_url ⇒ Object
Returns the value of attribute activity_url.
-
#activity_videos ⇒ Object
Returns the value of attribute activity_videos.
-
#author_name ⇒ Object
Returns the value of attribute author_name.
-
#author_type ⇒ Object
Returns the value of attribute author_type.
-
#author_url ⇒ Object
Returns the value of attribute author_url.
Instance Method Summary collapse
-
#initialize(data = {}) ⇒ CaaActivity
constructor
A new instance of CaaActivity.
Constructor Details
#initialize(data = {}) ⇒ CaaActivity
Returns a new instance of CaaActivity.
665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 |
# File 'lib/cufinder_ruby/types.rb', line 665 def initialize(data = {}) @activity_url = data["activity_url"] @activity_id = data["activity_id"] @author_name = data["author_name"] @author_type = data["author_type"] @author_url = data["author_url"] @activity_comments_count = data["activity_comments_count"] @activity_hashtags = data["activity_hashtags"] || [] @activity_headline = data["activity_headline"] @activity_images = data["activity_images"] || [] @activity_is_video = data["activity_is_video"] @activity_posted_at = data["activity_posted_at"] @activity_reactions_count = data["activity_reactions_count"] @activity_reposts_count = data["activity_reposts_count"] @activity_text = data["activity_text"] @activity_top_comments = data["activity_top_comments"] || [] @activity_videos = data["activity_videos"] || [] end |
Instance Attribute Details
#activity_comments_count ⇒ Object
Returns the value of attribute activity_comments_count.
659 660 661 |
# File 'lib/cufinder_ruby/types.rb', line 659 def activity_comments_count @activity_comments_count end |
#activity_hashtags ⇒ Object
Returns the value of attribute activity_hashtags.
659 660 661 |
# File 'lib/cufinder_ruby/types.rb', line 659 def @activity_hashtags end |
#activity_headline ⇒ Object
Returns the value of attribute activity_headline.
659 660 661 |
# File 'lib/cufinder_ruby/types.rb', line 659 def activity_headline @activity_headline end |
#activity_id ⇒ Object
Returns the value of attribute activity_id.
659 660 661 |
# File 'lib/cufinder_ruby/types.rb', line 659 def activity_id @activity_id end |
#activity_images ⇒ Object
Returns the value of attribute activity_images.
659 660 661 |
# File 'lib/cufinder_ruby/types.rb', line 659 def activity_images @activity_images end |
#activity_is_video ⇒ Object
Returns the value of attribute activity_is_video.
659 660 661 |
# File 'lib/cufinder_ruby/types.rb', line 659 def activity_is_video @activity_is_video end |
#activity_posted_at ⇒ Object
Returns the value of attribute activity_posted_at.
659 660 661 |
# File 'lib/cufinder_ruby/types.rb', line 659 def activity_posted_at @activity_posted_at end |
#activity_reactions_count ⇒ Object
Returns the value of attribute activity_reactions_count.
659 660 661 |
# File 'lib/cufinder_ruby/types.rb', line 659 def activity_reactions_count @activity_reactions_count end |
#activity_reposts_count ⇒ Object
Returns the value of attribute activity_reposts_count.
659 660 661 |
# File 'lib/cufinder_ruby/types.rb', line 659 def activity_reposts_count @activity_reposts_count end |
#activity_text ⇒ Object
Returns the value of attribute activity_text.
659 660 661 |
# File 'lib/cufinder_ruby/types.rb', line 659 def activity_text @activity_text end |
#activity_top_comments ⇒ Object
Returns the value of attribute activity_top_comments.
659 660 661 |
# File 'lib/cufinder_ruby/types.rb', line 659 def activity_top_comments @activity_top_comments end |
#activity_url ⇒ Object
Returns the value of attribute activity_url.
659 660 661 |
# File 'lib/cufinder_ruby/types.rb', line 659 def activity_url @activity_url end |
#activity_videos ⇒ Object
Returns the value of attribute activity_videos.
659 660 661 |
# File 'lib/cufinder_ruby/types.rb', line 659 def activity_videos @activity_videos end |
#author_name ⇒ Object
Returns the value of attribute author_name.
659 660 661 |
# File 'lib/cufinder_ruby/types.rb', line 659 def @author_name end |
#author_type ⇒ Object
Returns the value of attribute author_type.
659 660 661 |
# File 'lib/cufinder_ruby/types.rb', line 659 def @author_type end |
#author_url ⇒ Object
Returns the value of attribute author_url.
659 660 661 |
# File 'lib/cufinder_ruby/types.rb', line 659 def @author_url end |