Method: Bskyrb::ComAtprotoServerDefs::InviteCodeUse.from_hash

Defined in:
lib/bskyrb/generated_classes.rb

.from_hash(hash) ⇒ Object



1847
1848
1849
1850
1851
1852
1853
1854
1855
1856
# File 'lib/bskyrb/generated_classes.rb', line 1847

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

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

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

  instance
end