Class: Bskyrb::AppBskyNotificationListnotifications::Notification

Inherits:
Object
  • Object
show all
Defined in:
lib/bskyrb/generated_classes.rb

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#authorObject

Returns the value of attribute author.



865
866
867
# File 'lib/bskyrb/generated_classes.rb', line 865

def author
  @author
end

#cidObject

Returns the value of attribute cid.



863
864
865
# File 'lib/bskyrb/generated_classes.rb', line 863

def cid
  @cid
end

#indexedAtObject

Returns the value of attribute indexedAt.



875
876
877
# File 'lib/bskyrb/generated_classes.rb', line 875

def indexedAt
  @indexedAt
end

#isReadObject

Returns the value of attribute isRead.



873
874
875
# File 'lib/bskyrb/generated_classes.rb', line 873

def isRead
  @isRead
end

#labelsObject

Returns the value of attribute labels.



877
878
879
# File 'lib/bskyrb/generated_classes.rb', line 877

def labels
  @labels
end

#reasonObject

Returns the value of attribute reason.



867
868
869
# File 'lib/bskyrb/generated_classes.rb', line 867

def reason
  @reason
end

#reasonSubjectObject

Returns the value of attribute reasonSubject.



869
870
871
# File 'lib/bskyrb/generated_classes.rb', line 869

def reasonSubject
  @reasonSubject
end

#recordObject

Returns the value of attribute record.



871
872
873
# File 'lib/bskyrb/generated_classes.rb', line 871

def record
  @record
end

#uriObject

Returns the value of attribute uri.



861
862
863
# File 'lib/bskyrb/generated_classes.rb', line 861

def uri
  @uri
end

Class Method Details

.from_hash(hash) ⇒ Object



879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
# File 'lib/bskyrb/generated_classes.rb', line 879

def self.from_hash(hash)
  # httparty-returned string-keyed hash
  instance = new

  instance.send(:uri=, hash["uri"])

  instance.send(:cid=, hash["cid"])

  instance.send(:author=, hash["author"])

  instance.send(:reason=, hash["reason"])

  instance.send(:reasonSubject=, hash["reasonSubject"])

  instance.send(:record=, hash["record"])

  instance.send(:isRead=, hash["isRead"])

  instance.send(:indexedAt=, hash["indexedAt"])

  instance.send(:labels=, hash["labels"])

  instance
end