Class: NHKore::YasashiiNews

Inherits:
News
  • Object
show all
Defined in:
lib/nhkore/news.rb

Overview

Author:

  • Jonathan Bradley Whited

Since:

  • 0.2.0

Constant Summary collapse

DEFAULT_FILENAME =

Since:

  • 0.2.0

'nhk_news_web_easy.yml'
DEFAULT_FILE =

Since:

  • 0.2.0

build_file(DEFAULT_FILENAME)

Constants inherited from News

News::DEFAULT_DIR, News::FAVORED_URL

Instance Attribute Summary

Attributes inherited from News

#articles, #sha256s

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from News

#add_article, #article, #article?, #article_with_sha256, build_file, #encode_with, #initialize, #sha256?, #to_s, #update_article

Methods included from Fileable

included

Constructor Details

This class inherits a constructor from NHKore::News

Class Method Details

.load_data(data, **kargs) ⇒ Object

Since:

  • 0.2.0



159
160
161
# File 'lib/nhkore/news.rb', line 159

def self.load_data(data,**kargs)
  return News.load_data(data,article_class: Article,news_class: YasashiiNews,**kargs)
end

.load_file(file = DEFAULT_FILE, **kargs) ⇒ Object

Since:

  • 0.2.0



163
164
165
# File 'lib/nhkore/news.rb', line 163

def self.load_file(file=DEFAULT_FILE,**kargs)
  return News.load_file(file,article_class: Article,news_class: YasashiiNews,**kargs)
end

Instance Method Details

#save_file(file = DEFAULT_FILE, **kargs) ⇒ Object

Since:

  • 0.2.0



167
168
169
# File 'lib/nhkore/news.rb', line 167

def save_file(file=DEFAULT_FILE,**kargs)
  super(file,**kargs)
end