Class: Bskyrb::ComAtprotoSyncSubscriberepos::Tombstone

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

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#didObject

Returns the value of attribute did.



2026
2027
2028
# File 'lib/bskyrb/generated_classes.rb', line 2026

def did
  @did
end

#seqObject

Returns the value of attribute seq.



2024
2025
2026
# File 'lib/bskyrb/generated_classes.rb', line 2024

def seq
  @seq
end

#timeObject

Returns the value of attribute time.



2028
2029
2030
# File 'lib/bskyrb/generated_classes.rb', line 2028

def time
  @time
end

Class Method Details

.from_hash(hash) ⇒ Object



2030
2031
2032
2033
2034
2035
2036
2037
2038
2039
2040
2041
# File 'lib/bskyrb/generated_classes.rb', line 2030

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

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

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

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

  instance
end