Class: ConvenientService::Examples::Standard::V1::RequestParams::Utils::Integer::SafeParse
- Inherits:
-
Command
- Object
- ConvenientService::Examples::Standard::V1::RequestParams::Utils::Integer::SafeParse
- Defined in:
- lib/convenient_service/examples/standard/v1/request_params/utils/integer/safe_parse.rb
Overview
TODO: Specs.
Instance Attribute Summary collapse
-
#object ⇒ Object
readonly
Returns the value of attribute object.
Instance Method Summary collapse
- #call ⇒ Object
-
#initialize(object) ⇒ SafeParse
constructor
A new instance of SafeParse.
Constructor Details
#initialize(object) ⇒ SafeParse
Returns a new instance of SafeParse.
24 25 26 |
# File 'lib/convenient_service/examples/standard/v1/request_params/utils/integer/safe_parse.rb', line 24 def initialize(object) @object = object end |
Instance Attribute Details
#object ⇒ Object (readonly)
Returns the value of attribute object.
22 23 24 |
# File 'lib/convenient_service/examples/standard/v1/request_params/utils/integer/safe_parse.rb', line 22 def object @object end |
Instance Method Details
#call ⇒ Object
28 29 30 |
# File 'lib/convenient_service/examples/standard/v1/request_params/utils/integer/safe_parse.rb', line 28 def call ::Kernel.Integer(object, exception: false) end |