Class: ConvenientService::Examples::Standard::Cowsay::Services::BuildCloud

Inherits:
Object
  • Object
show all
Includes:
Service::Configs::Standard
Defined in:
lib/convenient_service/examples/standard/cowsay/services/build_cloud.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Service::Configs::Standard

service?, service_class?

Methods included from Config

included

Constructor Details

#initialize(text: "Hello World!") ⇒ BuildCloud

Returns a new instance of BuildCloud.



18
19
20
# File 'lib/convenient_service/examples/standard/cowsay/services/build_cloud.rb', line 18

def initialize(text: "Hello World!")
  @text = text
end

Instance Attribute Details

#textObject (readonly)

Returns the value of attribute text.



16
17
18
# File 'lib/convenient_service/examples/standard/cowsay/services/build_cloud.rb', line 16

def text
  @text
end

Instance Method Details

#resultObject



22
23
24
# File 'lib/convenient_service/examples/standard/cowsay/services/build_cloud.rb', line 22

def result
  success(cloud: cloud)
end