Class: Twitter::Size
Overview
Represents a size for media objects
Instance Attribute Summary collapse
-
#h ⇒ Integer
(also: #height)
readonly
The width in pixels.
-
#resize ⇒ String
readonly
The resize method used.
-
#w ⇒ Integer
(also: #width)
readonly
The width in pixels.
Attributes inherited from Base
Method Summary
Methods inherited from Base
#[], attr_reader, define_attribute_method, define_predicate_method, define_uri_method, display_uri_attr_reader, #initialize, object_attr_reader, predicate_attr_reader, uri_attr_reader
Methods included from Utils
Constructor Details
This class inherits a constructor from Twitter::Base
Instance Attribute Details
#h ⇒ Integer (readonly) Also known as: height
The width in pixels
22 23 24 |
# File 'lib/twitter/size.rb', line 22 def h @h end |
#resize ⇒ String (readonly)
The resize method used
30 31 32 |
# File 'lib/twitter/size.rb', line 30 def resize @resize end |
#w ⇒ Integer (readonly) Also known as: width
The width in pixels
22 23 24 |
# File 'lib/twitter/size.rb', line 22 def w @w end |