Class: Bskyrb::AppBskyEmbedExternal::View

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

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#externalObject

Returns the value of attribute external.



253
254
255
# File 'lib/bskyrb/generated_classes.rb', line 253

def external
  @external
end

Class Method Details

.from_hash(hash) ⇒ Object



255
256
257
258
259
260
261
262
# File 'lib/bskyrb/generated_classes.rb', line 255

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

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

  instance
end