Class: Echowrap::Image

Inherits:
Base
  • Object
show all
Defined in:
lib/echowrap/image.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from Base

#==, attr_reader, #attrs, #initialize, #update

Constructor Details

This class inherits a constructor from Echowrap::Base

Instance Attribute Details

#urlObject (readonly)

Returns the value of attribute url.



5
6
7
# File 'lib/echowrap/image.rb', line 5

def url
  @url
end

Instance Method Details

#licenseEchowrap::License

Returns:



8
9
10
# File 'lib/echowrap/image.rb', line 8

def license
  @license ||= Echowrap::License.new(@attrs[:license])
end