Class: ConvenientService::RSpec::Helpers::Classes::StubService

Inherits:
Support::Command
  • Object
show all
Defined in:
lib/convenient_service/rspec/helpers/classes/stub_service.rb,
lib/convenient_service/rspec/helpers/classes/stub_service/constants.rb,
lib/convenient_service/rspec/helpers/classes/stub_service/entities/result_spec.rb,
lib/convenient_service/rspec/helpers/classes/stub_service/entities/stubbed_service.rb

Defined Under Namespace

Modules: Constants, Entities

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from Support::Command

[], call

Constructor Details

#initialize(service_class) ⇒ void

Parameters:



29
30
31
# File 'lib/convenient_service/rspec/helpers/classes/stub_service.rb', line 29

def initialize(service_class)
  @service_class = service_class
end

Instance Attribute Details

#service_classObject (readonly)

Returns the value of attribute service_class.



23
24
25
# File 'lib/convenient_service/rspec/helpers/classes/stub_service.rb', line 23

def service_class
  @service_class
end

Instance Method Details

#callConvenientService::RSpec::Helpers::Classes::StubService::Entities::StubbedService



36
37
38
# File 'lib/convenient_service/rspec/helpers/classes/stub_service.rb', line 36

def call
  Entities::StubbedService.new(service_class: service_class)
end