Class: DataAPI::APIData

Inherits:
ActiveRecord::Base
  • Object
show all
Defined in:
app/models/data_api/api_data.rb

Overview

A fake ActiveRecord model that can change the reflected model on the fly

Class Method Summary collapse

Class Method Details

.column_names(*args, &block) ⇒ Object


5
6
7
# File 'app/models/data_api/api_data.rb', line 5

def self.column_names(*args, &block)
  model.column_names(*args, &block)
end

.connection(*args, &block) ⇒ Object


9
10
11
# File 'app/models/data_api/api_data.rb', line 9

def self.connection(*args, &block)
  model.connection(*args, &block)
end

.content_columns(*args, &block) ⇒ Object


25
26
27
# File 'app/models/data_api/api_data.rb', line 25

def self.content_columns(*args, &block)
  model.content_columns(*args, &block)
end

.find_by_id(*args, &block) ⇒ Object


29
30
31
# File 'app/models/data_api/api_data.rb', line 29

def self.find_by_id(*args, &block)
  model.find_by_id(*args, &block)
end

.human_attribute_name(*args, &block) ⇒ Object


21
22
23
# File 'app/models/data_api/api_data.rb', line 21

def self.human_attribute_name(*args, &block)
  model.human_attribute_name(*args, &block)
end

.import(*args, &block) ⇒ Object


37
38
39
# File 'app/models/data_api/api_data.rb', line 37

def self.import(*args, &block)
  model.import(*args, &block)
end

.primary_key(*args, &block) ⇒ Object


17
18
19
# File 'app/models/data_api/api_data.rb', line 17

def self.primary_key(*args, &block)
  model.primary_key(*args, &block)
end

.quoted_table_name(*args, &block) ⇒ Object


13
14
15
# File 'app/models/data_api/api_data.rb', line 13

def self.quoted_table_name(*args, &block)
  model.quoted_table_name(*args, &block)
end

.transaction(*args, &block) ⇒ Object


33
34
35
# File 'app/models/data_api/api_data.rb', line 33

def self.transaction(*args, &block)
  model.transaction(*args, &block)
end