Class: Fizzy::Types::Activity

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

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#actionObject (readonly)

Returns the value of attribute action

Returns:

  • (Object)

    the current value of action



67
68
69
# File 'lib/fizzy/generated/types.rb', line 67

def action
  @action
end

#boardObject (readonly)

Returns the value of attribute board

Returns:

  • (Object)

    the current value of board



67
68
69
# File 'lib/fizzy/generated/types.rb', line 67

def board
  @board
end

#created_atObject (readonly)

Returns the value of attribute created_at

Returns:

  • (Object)

    the current value of created_at



67
68
69
# File 'lib/fizzy/generated/types.rb', line 67

def created_at
  @created_at
end

#creatorObject (readonly)

Returns the value of attribute creator

Returns:

  • (Object)

    the current value of creator



67
68
69
# File 'lib/fizzy/generated/types.rb', line 67

def creator
  @creator
end

#descriptionObject (readonly)

Returns the value of attribute description

Returns:

  • (Object)

    the current value of description



67
68
69
# File 'lib/fizzy/generated/types.rb', line 67

def description
  @description
end

#eventableObject (readonly)

Returns the value of attribute eventable

Returns:

  • (Object)

    the current value of eventable



67
68
69
# File 'lib/fizzy/generated/types.rb', line 67

def eventable
  @eventable
end

#eventable_typeObject (readonly)

Returns the value of attribute eventable_type

Returns:

  • (Object)

    the current value of eventable_type



67
68
69
# File 'lib/fizzy/generated/types.rb', line 67

def eventable_type
  @eventable_type
end

#idObject (readonly)

Returns the value of attribute id

Returns:

  • (Object)

    the current value of id



67
68
69
# File 'lib/fizzy/generated/types.rb', line 67

def id
  @id
end

#particularsObject (readonly)

Returns the value of attribute particulars

Returns:

  • (Object)

    the current value of particulars



67
68
69
# File 'lib/fizzy/generated/types.rb', line 67

def particulars
  @particulars
end

#urlObject (readonly)

Returns the value of attribute url

Returns:

  • (Object)

    the current value of url



67
68
69
# File 'lib/fizzy/generated/types.rb', line 67

def url
  @url
end

Class Method Details

.from_json(data) ⇒ Object

Parameters:

  • data (Hash)

    raw JSON response



69
70
71
72
73
74
75
76
77
78
79
80
81
82
# File 'lib/fizzy/generated/types.rb', line 69

def self.from_json(data)
  new(
    id: data["id"],
    action: data["action"],
    created_at: data["created_at"],
    description: data["description"],
    particulars: data["particulars"],
    url: data["url"],
    eventable_type: data["eventable_type"],
    eventable: data["eventable"],
    board: data["board"],
    creator: data["creator"]
  )
end