Class: Bskyrb::AppBskyActorDefs::ContentLabelPref

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

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#labelObject

Returns the value of attribute label.



207
208
209
# File 'lib/bskyrb/generated_classes.rb', line 207

def label
  @label
end

#visibilityObject

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