Class: Bskyrb::AppBskyActorDefs::AdultContentPref

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

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#enabledObject

Returns the value of attribute enabled.



192
193
194
# File 'lib/bskyrb/generated_classes.rb', line 192

def enabled
  @enabled
end

Class Method Details

.from_hash(hash) ⇒ Object



194
195
196
197
198
199
200
201
# File 'lib/bskyrb/generated_classes.rb', line 194

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

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

  instance
end