Class: Bskyrb::ComAtprotoServerDefs::InviteCode

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

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#availableObject

Returns the value of attribute available.



1806
1807
1808
# File 'lib/bskyrb/generated_classes.rb', line 1806

def available
  @available
end

#codeObject

Returns the value of attribute code.



1804
1805
1806
# File 'lib/bskyrb/generated_classes.rb', line 1804

def code
  @code
end

#createdAtObject

Returns the value of attribute createdAt.



1814
1815
1816
# File 'lib/bskyrb/generated_classes.rb', line 1814

def createdAt
  @createdAt
end

#createdByObject

Returns the value of attribute createdBy.



1812
1813
1814
# File 'lib/bskyrb/generated_classes.rb', line 1812

def createdBy
  @createdBy
end

#disabledObject

Returns the value of attribute disabled.



1808
1809
1810
# File 'lib/bskyrb/generated_classes.rb', line 1808

def disabled
  @disabled
end

#forAccountObject

Returns the value of attribute forAccount.



1810
1811
1812
# File 'lib/bskyrb/generated_classes.rb', line 1810

def forAccount
  @forAccount
end

#usesObject

Returns the value of attribute uses.



1816
1817
1818
# File 'lib/bskyrb/generated_classes.rb', line 1816

def uses
  @uses
end

Class Method Details

.from_hash(hash) ⇒ Object



1818
1819
1820
1821
1822
1823
1824
1825
1826
1827
1828
1829
1830
1831
1832
1833
1834
1835
1836
1837
# File 'lib/bskyrb/generated_classes.rb', line 1818

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

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

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

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

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

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

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

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

  instance
end