Class: StandardRise

Inherits:
Object
  • Object
show all
Extended by:
Persistable::ClassMethods
Includes:
Persistable::InstanceMethods
Defined in:
lib/mtg_card_finder/tables/standard_rise.rb

Constant Summary collapse

ATTRS =

metaprogramming the hash to convert keys to attr_accessor’s and also for inserting the values to the sql strings

{
  :id => "INTEGER PRIMARY KEY",
  :card => "TEXT",
  :sets => "TEXT",
  :market_price => "INTEGER",
  :price_fluctuate => "TEXT",
  :image => "TEXT"
}

Class Method Summary collapse

Methods included from Persistable::ClassMethods

attributes_names_insert_sql, buy_link, create, create_sql, create_table, find, make_csv_file, question_marks_insert_sql, reify_from_row, remove_table, sql_columns_to_update, table_empty?, table_name, table_rows

Methods included from Persistable::InstanceMethods

#attribute_values_for_sql_check, #insert, #persisted?, #save, #update

Class Method Details

.attributesObject

reader that can be accessed by Persistable module to know the unique class’s constant



17
18
19
# File 'lib/mtg_card_finder/tables/standard_rise.rb', line 17

def self.attributes
  ATTRS
end