Class: Bskyrb::ComAtprotoAdminDefs::RepoRef

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.



1326
1327
1328
# File 'lib/bskyrb/generated_classes.rb', line 1326

def did
  @did
end

Class Method Details

.from_hash(hash) ⇒ Object



1328
1329
1330
1331
1332
1333
1334
1335
# File 'lib/bskyrb/generated_classes.rb', line 1328

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

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

  instance
end