Class: Cufinder::CaaActivity

Inherits:
Object
  • Object
show all
Defined in:
lib/cufinder_ruby/types.rb

Overview

CAA Activity

Instance Attribute Summary collapse

Instance Method Summary collapse

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_countObject

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_hashtagsObject

Returns the value of attribute activity_hashtags.



659
660
661
# File 'lib/cufinder_ruby/types.rb', line 659

def activity_hashtags
  @activity_hashtags
end

#activity_headlineObject

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_idObject

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_imagesObject

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_videoObject

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_atObject

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_countObject

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_countObject

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_textObject

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_commentsObject

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_urlObject

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_videosObject

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_nameObject

Returns the value of attribute author_name.



659
660
661
# File 'lib/cufinder_ruby/types.rb', line 659

def author_name
  @author_name
end

#author_typeObject

Returns the value of attribute author_type.



659
660
661
# File 'lib/cufinder_ruby/types.rb', line 659

def author_type
  @author_type
end

#author_urlObject

Returns the value of attribute author_url.



659
660
661
# File 'lib/cufinder_ruby/types.rb', line 659

def author_url
  @author_url
end