Module: RemoteResource::Concerns::Mappings::ClassMethods
- Defined in:
- lib/remote_resource/concerns/mappings.rb
Instance Method Summary collapse
Instance Method Details
#mapping(name = :default, &block) ⇒ Object
11 12 13 14 |
# File 'lib/remote_resource/concerns/mappings.rb', line 11 def mapping(name = :default, &block) @mappings ||= {} @mappings[name] = block end |