Class: ConvenientService::Examples::Standard::V1::RequestParams::Utils::Object::Blank
- Inherits:
-
Command
- Object
- ConvenientService::Examples::Standard::V1::RequestParams::Utils::Object::Blank
- Defined in:
- lib/convenient_service/examples/standard/v1/request_params/utils/object/blank.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) ⇒ Blank
constructor
A new instance of Blank.
Constructor Details
#initialize(object) ⇒ Blank
Returns a new instance of Blank.
19 20 21 |
# File 'lib/convenient_service/examples/standard/v1/request_params/utils/object/blank.rb', line 19 def initialize(object) @object = object end |
Instance Attribute Details
#object ⇒ Object (readonly)
Returns the value of attribute object.
17 18 19 |
# File 'lib/convenient_service/examples/standard/v1/request_params/utils/object/blank.rb', line 17 def object @object end |
Instance Method Details
#call ⇒ Object
26 27 28 |
# File 'lib/convenient_service/examples/standard/v1/request_params/utils/object/blank.rb', line 26 def call object.respond_to?(:empty?) ? !!object.empty? : !object end |