Class: RailsTwirp::ServiceMapper
- Inherits:
-
Object
- Object
- RailsTwirp::ServiceMapper
- Extended by:
- Forwardable
- Defined in:
- lib/rails_twirp/mapper.rb
Defined Under Namespace
Classes: Mapping
Instance Method Summary collapse
-
#initialize(service_route_set, mapper) ⇒ ServiceMapper
constructor
A new instance of ServiceMapper.
- #rpc(name, to:) ⇒ Object
Constructor Details
#initialize(service_route_set, mapper) ⇒ ServiceMapper
Returns a new instance of ServiceMapper.
45 46 47 48 |
# File 'lib/rails_twirp/mapper.rb', line 45 def initialize(service_route_set, mapper) @service_route_set = service_route_set @mapper = mapper end |