Class: Fizzy::Types::Notification
- Inherits:
-
Data
- Object
- Data
- Fizzy::Types::Notification
- Defined in:
- lib/fizzy/generated/types.rb
Instance Attribute Summary collapse
-
#body ⇒ Object
readonly
Returns the value of attribute body.
-
#card ⇒ Object
readonly
Returns the value of attribute card.
-
#created_at ⇒ Object
readonly
Returns the value of attribute created_at.
-
#creator ⇒ Object
readonly
Returns the value of attribute creator.
-
#id ⇒ Object
readonly
Returns the value of attribute id.
-
#read ⇒ Object
readonly
Returns the value of attribute read.
-
#read_at ⇒ Object
readonly
Returns the value of attribute read_at.
-
#source_type ⇒ Object
readonly
Returns the value of attribute source_type.
-
#title ⇒ Object
readonly
Returns the value of attribute title.
-
#unread_count ⇒ Object
readonly
Returns the value of attribute unread_count.
-
#url ⇒ Object
readonly
Returns the value of attribute url.
Class Method Summary collapse
Instance Attribute Details
#body ⇒ Object (readonly)
Returns the value of attribute body
716 717 718 |
# File 'lib/fizzy/generated/types.rb', line 716 def body @body end |
#card ⇒ Object (readonly)
Returns the value of attribute card
716 717 718 |
# File 'lib/fizzy/generated/types.rb', line 716 def card @card end |
#created_at ⇒ Object (readonly)
Returns the value of attribute created_at
716 717 718 |
# File 'lib/fizzy/generated/types.rb', line 716 def created_at @created_at end |
#creator ⇒ Object (readonly)
Returns the value of attribute creator
716 717 718 |
# File 'lib/fizzy/generated/types.rb', line 716 def creator @creator end |
#id ⇒ Object (readonly)
Returns the value of attribute id
716 717 718 |
# File 'lib/fizzy/generated/types.rb', line 716 def id @id end |
#read ⇒ Object (readonly)
Returns the value of attribute read
716 717 718 |
# File 'lib/fizzy/generated/types.rb', line 716 def read @read end |
#read_at ⇒ Object (readonly)
Returns the value of attribute read_at
716 717 718 |
# File 'lib/fizzy/generated/types.rb', line 716 def read_at @read_at end |
#source_type ⇒ Object (readonly)
Returns the value of attribute source_type
716 717 718 |
# File 'lib/fizzy/generated/types.rb', line 716 def source_type @source_type end |
#title ⇒ Object (readonly)
Returns the value of attribute title
716 717 718 |
# File 'lib/fizzy/generated/types.rb', line 716 def title @title end |
#unread_count ⇒ Object (readonly)
Returns the value of attribute unread_count
716 717 718 |
# File 'lib/fizzy/generated/types.rb', line 716 def unread_count @unread_count end |
#url ⇒ Object (readonly)
Returns the value of attribute url
716 717 718 |
# File 'lib/fizzy/generated/types.rb', line 716 def url @url end |
Class Method Details
.from_json(data) ⇒ Object
718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 |
# File 'lib/fizzy/generated/types.rb', line 718 def self.from_json(data) new( id: data["id"], unread_count: data["unread_count"], read: data["read"], read_at: data["read_at"], created_at: data["created_at"], source_type: data["source_type"], title: data["title"], body: data["body"], creator: data["creator"], card: data["card"], url: data["url"] ) end |