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

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

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

Returns a new instance of BuildCloud.



14
15
16
# File 'lib/convenient_service/examples/standard/v1/cowsay/services/build_cloud.rb', line 14

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

Instance Attribute Details

#textObject (readonly)

Returns the value of attribute text.



12
13
14
# File 'lib/convenient_service/examples/standard/v1/cowsay/services/build_cloud.rb', line 12

def text
  @text
end

Instance Method Details

#resultObject



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

def result
  success(cloud: cloud)
end