class Nyaplot::DataBase

DataBase to store instance of Nyaplot::DataFrame Each dataframe will be fetched when Nyaplot::Frame#to_json is excuted

Public Class Methods

new() click to toggle source
# File lib/nyaplot/database.rb, line 10
def initialize
  @db = {}
end

Public Instance Methods

add(df) click to toggle source
# File lib/nyaplot/database.rb, line 14
def add(df)
  @db[df.name] = df
end
fetch(df_name) click to toggle source
# File lib/nyaplot/database.rb, line 18
def fetch(df_name)
  @db[df_name]
end