Class: Bskyrb::ComAtprotoAdminDefs::ImageDetails
- Inherits:
-
Object
- Object
- Bskyrb::ComAtprotoAdminDefs::ImageDetails
- Defined in:
- lib/bskyrb/generated_classes.rb
Instance Attribute Summary collapse
-
#height ⇒ Object
Returns the value of attribute height.
-
#width ⇒ Object
Returns the value of attribute width.
Class Method Summary collapse
Instance Attribute Details
#height ⇒ Object
Returns the value of attribute height.
1498 1499 1500 |
# File 'lib/bskyrb/generated_classes.rb', line 1498 def height @height end |
#width ⇒ Object
Returns the value of attribute width.
1496 1497 1498 |
# File 'lib/bskyrb/generated_classes.rb', line 1496 def width @width end |
Class Method Details
.from_hash(hash) ⇒ Object
1500 1501 1502 1503 1504 1505 1506 1507 1508 1509 |
# File 'lib/bskyrb/generated_classes.rb', line 1500 def self.from_hash(hash) # httparty-returned string-keyed hash instance = new instance.send(:width=, hash["width"]) instance.send(:height=, hash["height"]) instance end |