Class: Bskyrb::ComAtprotoSyncSubscriberepos::Handle

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.



1972
1973
1974
# File 'lib/bskyrb/generated_classes.rb', line 1972

def did
  @did
end

#handleObject

Returns the value of attribute handle.



1974
1975
1976
# File 'lib/bskyrb/generated_classes.rb', line 1974

def handle
  @handle
end

#seqObject

Returns the value of attribute seq.



1970
1971
1972
# File 'lib/bskyrb/generated_classes.rb', line 1970

def seq
  @seq
end

#timeObject

Returns the value of attribute time.



1976
1977
1978
# File 'lib/bskyrb/generated_classes.rb', line 1976

def time
  @time
end

Class Method Details

.from_hash(hash) ⇒ Object



1978
1979
1980
1981
1982
1983
1984
1985
1986
1987
1988
1989
1990
1991
# File 'lib/bskyrb/generated_classes.rb', line 1978

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

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

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

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

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

  instance
end