Class: Forki::Post

Inherits:
Object
  • Object
show all
Defined in:
lib/forki/post.rb

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#created_atObject (readonly)

Returns the value of attribute created_at.



10
11
12
# File 'lib/forki/post.rb', line 10

def created_at
  @created_at
end

#has_videoObject (readonly)

Returns the value of attribute has_video.



10
11
12
# File 'lib/forki/post.rb', line 10

def has_video
  @has_video
end

#idObject (readonly)

Returns the value of attribute id.



10
11
12
# File 'lib/forki/post.rb', line 10

def id
  @id
end

#image_fileObject (readonly)

Returns the value of attribute image_file.



10
11
12
# File 'lib/forki/post.rb', line 10

def image_file
  @image_file
end

#image_urlObject (readonly)

Returns the value of attribute image_url.



10
11
12
# File 'lib/forki/post.rb', line 10

def image_url
  @image_url
end

#num_commentsObject (readonly)

Returns the value of attribute num_comments.



10
11
12
# File 'lib/forki/post.rb', line 10

def num_comments
  @num_comments
end

#num_sharesObject (readonly)

Returns the value of attribute num_shares.



10
11
12
# File 'lib/forki/post.rb', line 10

def num_shares
  @num_shares
end

#num_viewsObject (readonly)

Returns the value of attribute num_views.



10
11
12
# File 'lib/forki/post.rb', line 10

def num_views
  @num_views
end

#reactionsObject (readonly)

Returns the value of attribute reactions.



10
11
12
# File 'lib/forki/post.rb', line 10

def reactions
  @reactions
end

#screenshot_fileObject (readonly)

Returns the value of attribute screenshot_file.



10
11
12
# File 'lib/forki/post.rb', line 10

def screenshot_file
  @screenshot_file
end

#textObject (readonly)

Returns the value of attribute text.



10
11
12
# File 'lib/forki/post.rb', line 10

def text
  @text
end

#urlObject (readonly)

Returns the value of attribute url.



10
11
12
# File 'lib/forki/post.rb', line 10

def url
  @url
end

#userObject (readonly)

Returns the value of attribute user.



10
11
12
# File 'lib/forki/post.rb', line 10

def user
  @user
end

#video_fileObject (readonly)

Returns the value of attribute video_file.



10
11
12
# File 'lib/forki/post.rb', line 10

def video_file
  @video_file
end

#video_preview_image_fileObject (readonly)

Returns the value of attribute video_preview_image_file.



10
11
12
# File 'lib/forki/post.rb', line 10

def video_preview_image_file
  @video_preview_image_file
end

#video_preview_image_urlObject (readonly)

Returns the value of attribute video_preview_image_url.



10
11
12
# File 'lib/forki/post.rb', line 10

def video_preview_image_url
  @video_preview_image_url
end

Class Method Details

.lookup(urls = []) ⇒ Object



5
6
7
8
# File 'lib/forki/post.rb', line 5

def self.lookup(urls = [])
  urls = [urls] unless urls.kind_of?(Array)
  self.scrape(urls)
end