Sha256: d80c56f4b8920ffdeaff6cc7689c738edc7d50fcaf1cd23c38cab370cab615cb
Contents?: true
Size: 795 Bytes
Versions: 8
Compression:
Stored size: 795 Bytes
Contents
module Quandl module Cassinatra module Model class Multiset include Model::Dataset::Searchable include Concerns::Properties search_helper :to_dataset, -> { dataset } search_helper :dataset, -> { find('multiset') } search_scope :columns, ->(v){ where( columns: v ) } attributes :id, :column_ids, :data delegate :columns_count, :created_at, :frequency, :rows_count, :type, :updated_at, to: :dataset_attribute def data_table Data::Table.new( self.data || [] ) end def dataset_attribute(*args) return @dataset_attribute if @dataset_attribute # options options = args.extract_options! count = options[:count] == true # grab dataset_attribute @dataset_attribute = DatasetAttribute.where( count: count ).find(id) end end end end end
Version data entries
8 entries across 8 versions & 1 rubygems