Class: AvatarUrl
- Inherits:
-
Object
- Object
- AvatarUrl
- Defined in:
- lib/Appolo/Models/secondary/avatar_url.rb
Instance Attribute Summary collapse
-
#size_128 ⇒ Object
readonly
Returns the value of attribute size_128.
-
#size_24 ⇒ Object
readonly
Returns the value of attribute size_24.
-
#size_32 ⇒ Object
readonly
Returns the value of attribute size_32.
-
#size_64 ⇒ Object
readonly
Returns the value of attribute size_64.
Instance Method Summary collapse
-
#initialize(avatar_json_object) ⇒ AvatarUrl
constructor
A new instance of AvatarUrl.
Constructor Details
#initialize(avatar_json_object) ⇒ AvatarUrl
Returns a new instance of AvatarUrl.
7 8 9 10 11 12 |
# File 'lib/Appolo/Models/secondary/avatar_url.rb', line 7 def initialize(avatar_json_object) @size_24 = avatar_json_object['size24'] @size_32 = avatar_json_object['size32'] @size_64 = avatar_json_object['size64'] @size_128 = avatar_json_object['size128'] end |
Instance Attribute Details
#size_128 ⇒ Object (readonly)
Returns the value of attribute size_128.
4 5 6 |
# File 'lib/Appolo/Models/secondary/avatar_url.rb', line 4 def size_128 @size_128 end |
#size_24 ⇒ Object (readonly)
Returns the value of attribute size_24.
4 5 6 |
# File 'lib/Appolo/Models/secondary/avatar_url.rb', line 4 def size_24 @size_24 end |
#size_32 ⇒ Object (readonly)
Returns the value of attribute size_32.
4 5 6 |
# File 'lib/Appolo/Models/secondary/avatar_url.rb', line 4 def size_32 @size_32 end |
#size_64 ⇒ Object (readonly)
Returns the value of attribute size_64.
4 5 6 |
# File 'lib/Appolo/Models/secondary/avatar_url.rb', line 4 def size_64 @size_64 end |