class FmRest::Spyke::Base
Public Class Methods
new(attributes = nil)
click to toggle source
for device models define all unmapped columns in column map so they can be accessed
Calls superclass method
# File lib/orm_adapter/fmrest/adapter.rb, line 12 def initialize(attributes = nil) super return unless self.class.respond_to? :authentication_keys base_columns = self.class.to_adapter.column_names - mapped_attributes.keys self.class.attributes(base_columns.to_h {|col| [col, col]}) end