Class: Rapa::Image
- Inherits:
-
Object
- Object
- Rapa::Image
- Defined in:
- lib/rapa/image.rb
Instance Attribute Summary collapse
- #source ⇒ Hash readonly
Instance Method Summary collapse
- #height ⇒ Integer
-
#initialize(source) ⇒ Image
constructor
A new instance of Image.
- #url ⇒ String
- #width ⇒ Integer
Constructor Details
#initialize(source) ⇒ Image
Returns a new instance of Image.
7 8 9 |
# File 'lib/rapa/image.rb', line 7 def initialize(source) @source = source end |
Instance Attribute Details
#source ⇒ Hash (readonly)
4 5 6 |
# File 'lib/rapa/image.rb', line 4 def source @source end |