Class: Ayadn::AvatarImageObject

Inherits:
Object
  • Object
show all
Defined in:
lib/ayadn/user_object.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(hash) ⇒ AvatarImageObject

Returns a new instance of AvatarImageObject.



47
48
49
50
51
52
53
# File 'lib/ayadn/user_object.rb', line 47

def initialize hash
  @input = hash["avatar_image"]
  @url = @input["url"]
  @width = @input["width"]
  @is_default = @input["is_default"]
  @height = @input["height"]
end

Instance Attribute Details

#heightObject (readonly)

Returns the value of attribute height.



45
46
47
# File 'lib/ayadn/user_object.rb', line 45

def height
  @height
end

#inputObject (readonly)

Returns the value of attribute input.



45
46
47
# File 'lib/ayadn/user_object.rb', line 45

def input
  @input
end

#is_defaultObject (readonly)

Returns the value of attribute is_default.



45
46
47
# File 'lib/ayadn/user_object.rb', line 45

def is_default
  @is_default
end

#urlObject (readonly)

Returns the value of attribute url.



45
46
47
# File 'lib/ayadn/user_object.rb', line 45

def url
  @url
end

#widthObject (readonly)

Returns the value of attribute width.



45
46
47
# File 'lib/ayadn/user_object.rb', line 45

def width
  @width
end