Class: Bskyrb::ComAtprotoServerDefs::InviteCode
- Inherits:
-
Object
- Object
- Bskyrb::ComAtprotoServerDefs::InviteCode
- Defined in:
- lib/bskyrb/generated_classes.rb
Instance Attribute Summary collapse
-
#available ⇒ Object
Returns the value of attribute available.
-
#code ⇒ Object
Returns the value of attribute code.
-
#createdAt ⇒ Object
Returns the value of attribute createdAt.
-
#createdBy ⇒ Object
Returns the value of attribute createdBy.
-
#disabled ⇒ Object
Returns the value of attribute disabled.
-
#forAccount ⇒ Object
Returns the value of attribute forAccount.
-
#uses ⇒ Object
Returns the value of attribute uses.
Class Method Summary collapse
Instance Attribute Details
#available ⇒ Object
Returns the value of attribute available.
1806 1807 1808 |
# File 'lib/bskyrb/generated_classes.rb', line 1806 def available @available end |
#code ⇒ Object
Returns the value of attribute code.
1804 1805 1806 |
# File 'lib/bskyrb/generated_classes.rb', line 1804 def code @code end |
#createdAt ⇒ Object
Returns the value of attribute createdAt.
1814 1815 1816 |
# File 'lib/bskyrb/generated_classes.rb', line 1814 def createdAt @createdAt end |
#createdBy ⇒ Object
Returns the value of attribute createdBy.
1812 1813 1814 |
# File 'lib/bskyrb/generated_classes.rb', line 1812 def createdBy @createdBy end |
#disabled ⇒ Object
Returns the value of attribute disabled.
1808 1809 1810 |
# File 'lib/bskyrb/generated_classes.rb', line 1808 def disabled @disabled end |
#forAccount ⇒ Object
Returns the value of attribute forAccount.
1810 1811 1812 |
# File 'lib/bskyrb/generated_classes.rb', line 1810 def forAccount @forAccount end |
#uses ⇒ Object
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 |