Class: PossibleEmail::Image
- Inherits:
-
Object
- Object
- PossibleEmail::Image
- Defined in:
- lib/possible_email/profile/image.rb
Instance Attribute Summary collapse
-
#service ⇒ Object
readonly
Returns the value of attribute service.
-
#url ⇒ Object
readonly
Returns the value of attribute url.
-
#url_proxied ⇒ Object
readonly
Returns the value of attribute url_proxied.
Instance Method Summary collapse
-
#initialize(data) ⇒ Image
constructor
A new instance of Image.
Constructor Details
#initialize(data) ⇒ Image
Returns a new instance of Image.
5 6 7 8 9 |
# File 'lib/possible_email/profile/image.rb', line 5 def initialize(data) @url = data['url'] @service = data['service'] @url_proxied = data['url_proxied'] end |
Instance Attribute Details
#service ⇒ Object (readonly)
Returns the value of attribute service.
3 4 5 |
# File 'lib/possible_email/profile/image.rb', line 3 def service @service end |
#url ⇒ Object (readonly)
Returns the value of attribute url.
3 4 5 |
# File 'lib/possible_email/profile/image.rb', line 3 def url @url end |
#url_proxied ⇒ Object (readonly)
Returns the value of attribute url_proxied.
3 4 5 |
# File 'lib/possible_email/profile/image.rb', line 3 def url_proxied @url_proxied end |