Class: Fizzy::Types::NotificationCard

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

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#board_nameObject (readonly)

Returns the value of attribute board_name

Returns:

  • (Object)

    the current value of board_name



747
748
749
# File 'lib/fizzy/generated/types.rb', line 747

def board_name
  @board_name
end

#closedObject (readonly)

Returns the value of attribute closed

Returns:

  • (Object)

    the current value of closed



747
748
749
# File 'lib/fizzy/generated/types.rb', line 747

def closed
  @closed
end

#columnObject (readonly)

Returns the value of attribute column

Returns:

  • (Object)

    the current value of column



747
748
749
# File 'lib/fizzy/generated/types.rb', line 747

def column
  @column
end

#idObject (readonly)

Returns the value of attribute id

Returns:

  • (Object)

    the current value of id



747
748
749
# File 'lib/fizzy/generated/types.rb', line 747

def id
  @id
end

#numberObject (readonly)

Returns the value of attribute number

Returns:

  • (Object)

    the current value of number



747
748
749
# File 'lib/fizzy/generated/types.rb', line 747

def number
  @number
end

#postponedObject (readonly)

Returns the value of attribute postponed

Returns:

  • (Object)

    the current value of postponed



747
748
749
# File 'lib/fizzy/generated/types.rb', line 747

def postponed
  @postponed
end

#statusObject (readonly)

Returns the value of attribute status

Returns:

  • (Object)

    the current value of status



747
748
749
# File 'lib/fizzy/generated/types.rb', line 747

def status
  @status
end

#titleObject (readonly)

Returns the value of attribute title

Returns:

  • (Object)

    the current value of title



747
748
749
# File 'lib/fizzy/generated/types.rb', line 747

def title
  @title
end

#urlObject (readonly)

Returns the value of attribute url

Returns:

  • (Object)

    the current value of url



747
748
749
# File 'lib/fizzy/generated/types.rb', line 747

def url
  @url
end

Class Method Details

.from_json(data) ⇒ Object

Parameters:

  • data (Hash)

    raw JSON response



749
750
751
752
753
754
755
756
757
758
759
760
761
# File 'lib/fizzy/generated/types.rb', line 749

def self.from_json(data)
  new(
    id: data["id"],
    number: data["number"],
    title: data["title"],
    status: data["status"],
    board_name: data["board_name"],
    closed: data["closed"],
    postponed: data["postponed"],
    url: data["url"],
    column: data["column"] && Column.from_json(data["column"])
  )
end