Class: RemoteAttrAccessor::Config

Inherits:
Object
  • Object
show all
Defined in:
lib/remote_attr_accessor/config.rb

Overview

Override by lib/remote_attr_accessor/config.rb

Class Method Summary collapse

Class Method Details

.id_nameObject



4
5
6
# File 'lib/remote_attr_accessor/config.rb', line 4

def self.id_name
  'id'
end

.prefixObject



8
9
10
# File 'lib/remote_attr_accessor/config.rb', line 8

def self.prefix
  'remote_'
end

.remote_attrsObject



16
17
18
# File 'lib/remote_attr_accessor/config.rb', line 16

def self.remote_attrs
  [:email, :last_name, :first_name]
end

.remote_attrs_with_prefixObject



20
21
22
# File 'lib/remote_attr_accessor/config.rb', line 20

def self.remote_attrs_with_prefix
  @remote_attrs_with_prefix = remote_attrs.map{|attr| "#{prefix}#{attr}"}
end

.remote_json_keyObject



12
13
14
# File 'lib/remote_attr_accessor/config.rb', line 12

def self.remote_json_key
  'users'
end