Class: Bskyrb::ComAtprotoLabelDefs::Label
- Inherits:
-
Object
- Object
- Bskyrb::ComAtprotoLabelDefs::Label
- Defined in:
- lib/bskyrb/generated_classes.rb
Instance Attribute Summary collapse
-
#cid ⇒ Object
Returns the value of attribute cid.
-
#cts ⇒ Object
Returns the value of attribute cts.
-
#neg ⇒ Object
Returns the value of attribute neg.
-
#src ⇒ Object
Returns the value of attribute src.
-
#uri ⇒ Object
Returns the value of attribute uri.
-
#val ⇒ Object
Returns the value of attribute val.
Class Method Summary collapse
Instance Attribute Details
#cid ⇒ Object
Returns the value of attribute cid.
1542 1543 1544 |
# File 'lib/bskyrb/generated_classes.rb', line 1542 def cid @cid end |
#cts ⇒ Object
Returns the value of attribute cts.
1548 1549 1550 |
# File 'lib/bskyrb/generated_classes.rb', line 1548 def cts @cts end |
#neg ⇒ Object
Returns the value of attribute neg.
1546 1547 1548 |
# File 'lib/bskyrb/generated_classes.rb', line 1546 def neg @neg end |
#src ⇒ Object
Returns the value of attribute src.
1538 1539 1540 |
# File 'lib/bskyrb/generated_classes.rb', line 1538 def src @src end |
#uri ⇒ Object
Returns the value of attribute uri.
1540 1541 1542 |
# File 'lib/bskyrb/generated_classes.rb', line 1540 def uri @uri end |
#val ⇒ Object
Returns the value of attribute val.
1544 1545 1546 |
# File 'lib/bskyrb/generated_classes.rb', line 1544 def val @val end |
Class Method Details
.from_hash(hash) ⇒ Object
1550 1551 1552 1553 1554 1555 1556 1557 1558 1559 1560 1561 1562 1563 1564 1565 1566 1567 |
# File 'lib/bskyrb/generated_classes.rb', line 1550 def self.from_hash(hash) # httparty-returned string-keyed hash instance = new instance.send(:src=, hash["src"]) instance.send(:uri=, hash["uri"]) instance.send(:cid=, hash["cid"]) instance.send(:val=, hash["val"]) instance.send(:neg=, hash["neg"]) instance.send(:cts=, hash["cts"]) instance end |