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



868
869
870
# File 'lib/fizzy/generated/types.rb', line 868

def completed
  @completed
end

#contentObject (readonly)

Returns the value of attribute content

Returns:

  • (Object)

    the current value of content



868
869
870
# File 'lib/fizzy/generated/types.rb', line 868

def content
  @content
end

#idObject (readonly)

Returns the value of attribute id

Returns:

  • (Object)

    the current value of id



868
869
870
# File 'lib/fizzy/generated/types.rb', line 868

def id
  @id
end

Class Method Details

.from_json(data) ⇒ Object

Parameters:

  • data (Hash)

    raw JSON response



870
871
872
873
874
875
876
# File 'lib/fizzy/generated/types.rb', line 870

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