Class: Fizzy::Types::Card

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

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#assigneesObject (readonly)

Returns the value of attribute assignees

Returns:

  • (Object)

    the current value of assignees



217
218
219
# File 'lib/fizzy/generated/types.rb', line 217

def assignees
  @assignees
end

#boardObject (readonly)

Returns the value of attribute board

Returns:

  • (Object)

    the current value of board



217
218
219
# File 'lib/fizzy/generated/types.rb', line 217

def board
  @board
end

#closedObject (readonly)

Returns the value of attribute closed

Returns:

  • (Object)

    the current value of closed



217
218
219
# File 'lib/fizzy/generated/types.rb', line 217

def closed
  @closed
end

#columnObject (readonly)

Returns the value of attribute column

Returns:

  • (Object)

    the current value of column



217
218
219
# File 'lib/fizzy/generated/types.rb', line 217

def column
  @column
end

#comments_urlObject (readonly)

Returns the value of attribute comments_url

Returns:

  • (Object)

    the current value of comments_url



217
218
219
# File 'lib/fizzy/generated/types.rb', line 217

def comments_url
  @comments_url
end

#created_atObject (readonly)

Returns the value of attribute created_at

Returns:

  • (Object)

    the current value of created_at



217
218
219
# File 'lib/fizzy/generated/types.rb', line 217

def created_at
  @created_at
end

#creatorObject (readonly)

Returns the value of attribute creator

Returns:

  • (Object)

    the current value of creator



217
218
219
# File 'lib/fizzy/generated/types.rb', line 217

def creator
  @creator
end

#descriptionObject (readonly)

Returns the value of attribute description

Returns:

  • (Object)

    the current value of description



217
218
219
# File 'lib/fizzy/generated/types.rb', line 217

def description
  @description
end

#description_htmlObject (readonly)

Returns the value of attribute description_html

Returns:

  • (Object)

    the current value of description_html



217
218
219
# File 'lib/fizzy/generated/types.rb', line 217

def description_html
  @description_html
end

#goldenObject (readonly)

Returns the value of attribute golden

Returns:

  • (Object)

    the current value of golden



217
218
219
# File 'lib/fizzy/generated/types.rb', line 217

def golden
  @golden
end

#has_attachmentsObject (readonly)

Returns the value of attribute has_attachments

Returns:

  • (Object)

    the current value of has_attachments



217
218
219
# File 'lib/fizzy/generated/types.rb', line 217

def has_attachments
  @has_attachments
end

#has_more_assigneesObject (readonly)

Returns the value of attribute has_more_assignees

Returns:

  • (Object)

    the current value of has_more_assignees



217
218
219
# File 'lib/fizzy/generated/types.rb', line 217

def has_more_assignees
  @has_more_assignees
end

#idObject (readonly)

Returns the value of attribute id

Returns:

  • (Object)

    the current value of id



217
218
219
# File 'lib/fizzy/generated/types.rb', line 217

def id
  @id
end

#image_urlObject (readonly)

Returns the value of attribute image_url

Returns:

  • (Object)

    the current value of image_url



217
218
219
# File 'lib/fizzy/generated/types.rb', line 217

def image_url
  @image_url
end

#last_active_atObject (readonly)

Returns the value of attribute last_active_at

Returns:

  • (Object)

    the current value of last_active_at



217
218
219
# File 'lib/fizzy/generated/types.rb', line 217

def last_active_at
  @last_active_at
end

#numberObject (readonly)

Returns the value of attribute number

Returns:

  • (Object)

    the current value of number



217
218
219
# File 'lib/fizzy/generated/types.rb', line 217

def number
  @number
end

#postponedObject (readonly)

Returns the value of attribute postponed

Returns:

  • (Object)

    the current value of postponed



217
218
219
# File 'lib/fizzy/generated/types.rb', line 217

def postponed
  @postponed
end

#reactions_urlObject (readonly)

Returns the value of attribute reactions_url

Returns:

  • (Object)

    the current value of reactions_url



217
218
219
# File 'lib/fizzy/generated/types.rb', line 217

def reactions_url
  @reactions_url
end

#statusObject (readonly)

Returns the value of attribute status

Returns:

  • (Object)

    the current value of status



217
218
219
# File 'lib/fizzy/generated/types.rb', line 217

def status
  @status
end

#stepsObject (readonly)

Returns the value of attribute steps

Returns:

  • (Object)

    the current value of steps



217
218
219
# File 'lib/fizzy/generated/types.rb', line 217

def steps
  @steps
end

#tagsObject (readonly)

Returns the value of attribute tags

Returns:

  • (Object)

    the current value of tags



217
218
219
# File 'lib/fizzy/generated/types.rb', line 217

def tags
  @tags
end

#titleObject (readonly)

Returns the value of attribute title

Returns:

  • (Object)

    the current value of title



217
218
219
# File 'lib/fizzy/generated/types.rb', line 217

def title
  @title
end

#urlObject (readonly)

Returns the value of attribute url

Returns:

  • (Object)

    the current value of url



217
218
219
# File 'lib/fizzy/generated/types.rb', line 217

def url
  @url
end

Class Method Details

.from_json(data) ⇒ Object

Parameters:

  • data (Hash)

    raw JSON response



219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
# File 'lib/fizzy/generated/types.rb', line 219

def self.from_json(data)
  new(
    id: data["id"],
    number: data["number"],
    title: data["title"],
    status: data["status"],
    description: data["description"],
    description_html: data["description_html"],
    image_url: data["image_url"],
    has_attachments: data["has_attachments"],
    tags: data["tags"],
    closed: data["closed"],
    postponed: data["postponed"],
    golden: data["golden"],
    last_active_at: data["last_active_at"],
    created_at: data["created_at"],
    url: data["url"],
    board: data["board"],
    column: data["column"],
    creator: data["creator"],
    assignees: data["assignees"],
    has_more_assignees: data["has_more_assignees"],
    comments_url: data["comments_url"],
    reactions_url: data["reactions_url"],
    steps: data["steps"]
  )
end