Class: Fizzy::Types::CreateStepRequestContent

Inherits:
Data
  • Object
show all
Defined in:
lib/fizzy/generated/types.rb

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#completedObject (readonly)

Returns the value of attribute completed

Returns:

  • (Object)

    the current value of completed



460
461
462
# File 'lib/fizzy/generated/types.rb', line 460

def completed
  @completed
end

#contentObject (readonly)

Returns the value of attribute content

Returns:

  • (Object)

    the current value of content



460
461
462
# File 'lib/fizzy/generated/types.rb', line 460

def content
  @content
end

Class Method Details

.from_json(data) ⇒ Object

Parameters:

  • data (Hash)

    raw JSON response



462
463
464
465
466
467
# File 'lib/fizzy/generated/types.rb', line 462

def self.from_json(data)
  new(
    content: data["content"],
    completed: data["completed"]
  )
end