Class: ConvenientService::Examples::Standard::V1::RequestParams::Utils::Object::Present

Inherits:
Command
  • Object
show all
Defined in:
lib/convenient_service/examples/standard/v1/request_params/utils/object/present.rb

Overview

TODO: Specs.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(object) ⇒ Present

Returns a new instance of Present.



19
20
21
# File 'lib/convenient_service/examples/standard/v1/request_params/utils/object/present.rb', line 19

def initialize(object)
  @object = object
end

Instance Attribute Details

#objectObject (readonly)

Returns the value of attribute object.



17
18
19
# File 'lib/convenient_service/examples/standard/v1/request_params/utils/object/present.rb', line 17

def object
  @object
end

Instance Method Details

#callObject



23
24
25
# File 'lib/convenient_service/examples/standard/v1/request_params/utils/object/present.rb', line 23

def call
  Utils::Object.blank?(object)
end