Class: RemoteAttrAccessor::Config
- Inherits:
-
Object
- Object
- RemoteAttrAccessor::Config
- Defined in:
- lib/remote_attr_accessor/config.rb
Overview
Override by lib/remote_attr_accessor/config.rb
Class Method Summary collapse
- .id_name ⇒ Object
- .prefix ⇒ Object
- .remote_attrs ⇒ Object
- .remote_attrs_with_prefix ⇒ Object
- .remote_json_key ⇒ Object
Class Method Details
.id_name ⇒ Object
4 5 6 |
# File 'lib/remote_attr_accessor/config.rb', line 4 def self.id_name 'id' end |
.prefix ⇒ Object
8 9 10 |
# File 'lib/remote_attr_accessor/config.rb', line 8 def self.prefix 'remote_' end |
.remote_attrs ⇒ Object
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_prefix ⇒ Object
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_key ⇒ Object
12 13 14 |
# File 'lib/remote_attr_accessor/config.rb', line 12 def self.remote_json_key 'users' end |