Class: Bskyrb::ComAtprotoAdminDefs::VideoDetails

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

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#heightObject

Returns the value of attribute height.



1517
1518
1519
# File 'lib/bskyrb/generated_classes.rb', line 1517

def height
  @height
end

#lengthObject

Returns the value of attribute length.



1519
1520
1521
# File 'lib/bskyrb/generated_classes.rb', line 1519

def length
  @length
end

#widthObject

Returns the value of attribute width.



1515
1516
1517
# File 'lib/bskyrb/generated_classes.rb', line 1515

def width
  @width
end

Class Method Details

.from_hash(hash) ⇒ Object



1521
1522
1523
1524
1525
1526
1527
1528
1529
1530
1531
1532
# File 'lib/bskyrb/generated_classes.rb', line 1521

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

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

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

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

  instance
end