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
727 728 729 |
# File 'lib/fizzy/generated/types.rb', line 727 def body @body end |
#card ⇒ Object (readonly)
Returns the value of attribute card
727 728 729 |
# File 'lib/fizzy/generated/types.rb', line 727 def card @card end |
#created_at ⇒ Object (readonly)
Returns the value of attribute created_at
727 728 729 |
# File 'lib/fizzy/generated/types.rb', line 727 def created_at @created_at end |
#creator ⇒ Object (readonly)
Returns the value of attribute creator
727 728 729 |
# File 'lib/fizzy/generated/types.rb', line 727 def creator @creator end |
#id ⇒ Object (readonly)
Returns the value of attribute id
727 728 729 |
# File 'lib/fizzy/generated/types.rb', line 727 def id @id end |
#read ⇒ Object (readonly)
Returns the value of attribute read
727 728 729 |
# File 'lib/fizzy/generated/types.rb', line 727 def read @read end |
#read_at ⇒ Object (readonly)
Returns the value of attribute read_at
727 728 729 |
# File 'lib/fizzy/generated/types.rb', line 727 def read_at @read_at end |
#source_type ⇒ Object (readonly)
Returns the value of attribute source_type
727 728 729 |
# File 'lib/fizzy/generated/types.rb', line 727 def source_type @source_type end |
#title ⇒ Object (readonly)
Returns the value of attribute title
727 728 729 |
# File 'lib/fizzy/generated/types.rb', line 727 def title @title end |
#unread_count ⇒ Object (readonly)
Returns the value of attribute unread_count
727 728 729 |
# File 'lib/fizzy/generated/types.rb', line 727 def unread_count @unread_count end |
#url ⇒ Object (readonly)
Returns the value of attribute url
727 728 729 |
# File 'lib/fizzy/generated/types.rb', line 727 def url @url end |
Class Method Details
.from_json(data) ⇒ Object
729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 |
# File 'lib/fizzy/generated/types.rb', line 729 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"] && User.from_json(data["creator"]), card: data["card"] && NotificationCard.from_json(data["card"]), url: data["url"] ) end |