Class: Bskyrb::AppBskyActorDefs::ContentLabelPref
- Inherits:
-
Object
- Object
- Bskyrb::AppBskyActorDefs::ContentLabelPref
- Defined in:
- lib/bskyrb/generated_classes.rb
Instance Attribute Summary collapse
-
#label ⇒ Object
Returns the value of attribute label.
-
#visibility ⇒ Object
Returns the value of attribute visibility.
Class Method Summary collapse
Instance Attribute Details
#label ⇒ Object
Returns the value of attribute label.
207 208 209 |
# File 'lib/bskyrb/generated_classes.rb', line 207 def label @label end |
#visibility ⇒ Object
Returns the value of attribute visibility.
209 210 211 |
# File 'lib/bskyrb/generated_classes.rb', line 209 def visibility @visibility end |
Class Method Details
.from_hash(hash) ⇒ Object
211 212 213 214 215 216 217 218 219 220 |
# File 'lib/bskyrb/generated_classes.rb', line 211 def self.from_hash(hash) # httparty-returned string-keyed hash instance = new instance.send(:label=, hash["label"]) instance.send(:visibility=, hash["visibility"]) instance end |