Class: Mxrb::RubyApp::Service
- Inherits:
-
Object
- Object
- Mxrb::RubyApp::Service
- Defined in:
- lib/mxrb/ruby_app.rb
Overview
Base for generated services. The default body executes through MXRB's pure-Ruby native interpreter and can be replaced with idiomatic Ruby.
Class Attribute Summary collapse
-
.mendix_id ⇒ Object
readonly
Returns the value of attribute mendix_id.
Class Method Summary collapse
Instance Method Summary collapse
- #call(**arguments) ⇒ Object
-
#initialize(application, context: nil) ⇒ Service
constructor
A new instance of Service.
Constructor Details
#initialize(application, context: nil) ⇒ Service
Returns a new instance of Service.
287 288 289 290 |
# File 'lib/mxrb/ruby_app.rb', line 287 def initialize(application, context: nil) @application = application @context = context end |
Class Attribute Details
.mendix_id ⇒ Object (readonly)
Returns the value of attribute mendix_id.
276 277 278 |
# File 'lib/mxrb/ruby_app.rb', line 276 def mendix_id @mendix_id end |
Class Method Details
Instance Method Details
#call(**arguments) ⇒ Object
292 |
# File 'lib/mxrb/ruby_app.rb', line 292 def call(**arguments) = native_call(arguments) |