Class: NewsApi::Source

Inherits:
Struct
  • Object
show all
Defined in:
lib/chid/news_api.rb

Instance Attribute Summary collapse

Instance Attribute Details

#categoryObject

Returns the value of attribute category

Returns:

  • (Object)

    the current value of category



5
6
7
# File 'lib/chid/news_api.rb', line 5

def category
  @category
end

#descriptionObject

Returns the value of attribute description

Returns:

  • (Object)

    the current value of description



5
6
7
# File 'lib/chid/news_api.rb', line 5

def description
  @description
end

#idObject

Returns the value of attribute id

Returns:

  • (Object)

    the current value of id



5
6
7
# File 'lib/chid/news_api.rb', line 5

def id
  @id
end

#nameObject

Returns the value of attribute name

Returns:

  • (Object)

    the current value of name



5
6
7
# File 'lib/chid/news_api.rb', line 5

def name
  @name
end