Class: Bskyrb::AppBskyEmbedExternal::External

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.



230
231
232
# File 'lib/bskyrb/generated_classes.rb', line 230

def description
  @description
end

#thumbObject

Returns the value of attribute thumb.



232
233
234
# File 'lib/bskyrb/generated_classes.rb', line 232

def thumb
  @thumb
end

#titleObject

Returns the value of attribute title.



228
229
230
# File 'lib/bskyrb/generated_classes.rb', line 228

def title
  @title
end

#uriObject

Returns the value of attribute uri.



226
227
228
# File 'lib/bskyrb/generated_classes.rb', line 226

def uri
  @uri
end

Class Method Details

.from_hash(hash) ⇒ Object



234
235
236
237
238
239
240
241
242
243
244
245
246
247
# File 'lib/bskyrb/generated_classes.rb', line 234

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