Class: Bskyrb::AppBskyEmbedExternal::ViewExternal

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

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#descriptionObject

Returns the value of attribute description.



272
273
274
# File 'lib/bskyrb/generated_classes.rb', line 272

def description
  @description
end

#thumbObject

Returns the value of attribute thumb.



274
275
276
# File 'lib/bskyrb/generated_classes.rb', line 274

def thumb
  @thumb
end

#titleObject

Returns the value of attribute title.



270
271
272
# File 'lib/bskyrb/generated_classes.rb', line 270

def title
  @title
end

#uriObject

Returns the value of attribute uri.



268
269
270
# File 'lib/bskyrb/generated_classes.rb', line 268

def uri
  @uri
end

Class Method Details

.from_hash(hash) ⇒ Object



276
277
278
279
280
281
282
283
284
285
286
287
288
289
# File 'lib/bskyrb/generated_classes.rb', line 276

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

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

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

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

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

  instance
end