class Nemweb::DataFile
Public Class Methods
new(uri, client)
click to toggle source
Calls superclass method
# File lib/nemweb/data_file.rb, line 5 def initialize(uri, client) super(uri) @client = client end
Public Instance Methods
name()
click to toggle source
# File lib/nemweb/data_file.rb, line 10 def name File.basename(uri.path) end
parse(&block)
click to toggle source
# File lib/nemweb/data_file.rb, line 18 def parse(&block) @client.parse(uri, &block) end
period()
click to toggle source
# File lib/nemweb/data_file.rb, line 14 def period name.scan(/_(\d{4,})/).first.first end