Class: Hongkong::News::Document

Inherits:
Struct
  • Object
show all
Defined in:
lib/hongkong/news/models/document.rb

Instance Attribute Summary collapse

Instance Attribute Details

#contentObject

Returns the value of attribute content

Returns:

  • (Object)

    the current value of content



3
4
5
# File 'lib/hongkong/news/models/document.rb', line 3

def content
  @content
end

#htmlObject

Returns the value of attribute html

Returns:

  • (Object)

    the current value of html



3
4
5
# File 'lib/hongkong/news/models/document.rb', line 3

def html
  @html
end

#idObject

Returns the value of attribute id

Returns:

  • (Object)

    the current value of id



3
4
5
# File 'lib/hongkong/news/models/document.rb', line 3

def id
  @id
end

#image_urlObject

Returns the value of attribute image_url

Returns:

  • (Object)

    the current value of image_url



3
4
5
# File 'lib/hongkong/news/models/document.rb', line 3

def image_url
  @image_url
end

#sourceObject

Returns the value of attribute source

Returns:

  • (Object)

    the current value of source



3
4
5
# File 'lib/hongkong/news/models/document.rb', line 3

def source
  @source
end

#titleObject

Returns the value of attribute title

Returns:

  • (Object)

    the current value of title



3
4
5
# File 'lib/hongkong/news/models/document.rb', line 3

def title
  @title
end

#urlObject

Returns the value of attribute url

Returns:

  • (Object)

    the current value of url



3
4
5
# File 'lib/hongkong/news/models/document.rb', line 3

def url
  @url
end