Class: Bskyrb::ComAtprotoServerDefs::InviteCodeUse

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

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#usedAtObject

Returns the value of attribute usedAt.



1845
1846
1847
# File 'lib/bskyrb/generated_classes.rb', line 1845

def usedAt
  @usedAt
end

#usedByObject

Returns the value of attribute usedBy.



1843
1844
1845
# File 'lib/bskyrb/generated_classes.rb', line 1843

def usedBy
  @usedBy
end

Class Method Details

.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