Class: Bskyrb::ComAtprotoSyncSubscriberepos::Migrate

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.



1999
2000
2001
# File 'lib/bskyrb/generated_classes.rb', line 1999

def did
  @did
end

#migrateToObject

Returns the value of attribute migrateTo.



2001
2002
2003
# File 'lib/bskyrb/generated_classes.rb', line 2001

def migrateTo
  @migrateTo
end

#seqObject

Returns the value of attribute seq.



1997
1998
1999
# File 'lib/bskyrb/generated_classes.rb', line 1997

def seq
  @seq
end

#timeObject

Returns the value of attribute time.



2003
2004
2005
# File 'lib/bskyrb/generated_classes.rb', line 2003

def time
  @time
end

Class Method Details

.from_hash(hash) ⇒ Object



2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
# File 'lib/bskyrb/generated_classes.rb', line 2005

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

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

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

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

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

  instance
end