Class: Fizzy::Types::Comment

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

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#bodyObject (readonly)

Returns the value of attribute body

Returns:

  • (Object)

    the current value of body



274
275
276
# File 'lib/fizzy/generated/types.rb', line 274

def body
  @body
end

#cardObject (readonly)

Returns the value of attribute card

Returns:

  • (Object)

    the current value of card



274
275
276
# File 'lib/fizzy/generated/types.rb', line 274

def card
  @card
end

#created_atObject (readonly)

Returns the value of attribute created_at

Returns:

  • (Object)

    the current value of created_at



274
275
276
# File 'lib/fizzy/generated/types.rb', line 274

def created_at
  @created_at
end

#creatorObject (readonly)

Returns the value of attribute creator

Returns:

  • (Object)

    the current value of creator



274
275
276
# File 'lib/fizzy/generated/types.rb', line 274

def creator
  @creator
end

#idObject (readonly)

Returns the value of attribute id

Returns:

  • (Object)

    the current value of id



274
275
276
# File 'lib/fizzy/generated/types.rb', line 274

def id
  @id
end

#reactions_urlObject (readonly)

Returns the value of attribute reactions_url

Returns:

  • (Object)

    the current value of reactions_url



274
275
276
# File 'lib/fizzy/generated/types.rb', line 274

def reactions_url
  @reactions_url
end

#updated_atObject (readonly)

Returns the value of attribute updated_at

Returns:

  • (Object)

    the current value of updated_at



274
275
276
# File 'lib/fizzy/generated/types.rb', line 274

def updated_at
  @updated_at
end

#urlObject (readonly)

Returns the value of attribute url

Returns:

  • (Object)

    the current value of url



274
275
276
# File 'lib/fizzy/generated/types.rb', line 274

def url
  @url
end

Class Method Details

.from_json(data) ⇒ Object

Parameters:

  • data (Hash)

    raw JSON response



276
277
278
279
280
281
282
283
284
285
286
287
# File 'lib/fizzy/generated/types.rb', line 276

def self.from_json(data)
  new(
    id: data["id"],
    created_at: data["created_at"],
    updated_at: data["updated_at"],
    body: data["body"],
    creator: data["creator"],
    card: data["card"],
    reactions_url: data["reactions_url"],
    url: data["url"]
  )
end