Class: Fizzy::Types::Step

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



857
858
859
# File 'lib/fizzy/generated/types.rb', line 857

def completed
  @completed
end

#contentObject (readonly)

Returns the value of attribute content

Returns:

  • (Object)

    the current value of content



857
858
859
# File 'lib/fizzy/generated/types.rb', line 857

def content
  @content
end

#idObject (readonly)

Returns the value of attribute id

Returns:

  • (Object)

    the current value of id



857
858
859
# File 'lib/fizzy/generated/types.rb', line 857

def id
  @id
end

Class Method Details

.from_json(data) ⇒ Object

Parameters:

  • data (Hash)

    raw JSON response



859
860
861
862
863
864
865
# File 'lib/fizzy/generated/types.rb', line 859

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