Class: AvatarUrl

Inherits:
Object
  • Object
show all
Defined in:
lib/Appolo/Models/avatar_url.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(avatar_json_object) ⇒ AvatarUrl

Returns a new instance of AvatarUrl.


7
8
9
10
11
12
# File 'lib/Appolo/Models/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_128Object (readonly)

Returns the value of attribute size_128


4
5
6
# File 'lib/Appolo/Models/avatar_url.rb', line 4

def size_128
  @size_128
end

#size_24Object (readonly)

Returns the value of attribute size_24


4
5
6
# File 'lib/Appolo/Models/avatar_url.rb', line 4

def size_24
  @size_24
end

#size_32Object (readonly)

Returns the value of attribute size_32


4
5
6
# File 'lib/Appolo/Models/avatar_url.rb', line 4

def size_32
  @size_32
end

#size_64Object (readonly)

Returns the value of attribute size_64


4
5
6
# File 'lib/Appolo/Models/avatar_url.rb', line 4

def size_64
  @size_64
end