Class: Bskyrb::AppBskyEmbedRecord::View

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

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#recordObject

Returns the value of attribute record.



352
353
354
# File 'lib/bskyrb/generated_classes.rb', line 352

def record
  @record
end

Class Method Details

.from_hash(hash) ⇒ Object



354
355
356
357
358
359
360
361
# File 'lib/bskyrb/generated_classes.rb', line 354

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

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

  instance
end