Class: Ayadn::AvatarImageObject
Instance Attribute Summary collapse
-
#height ⇒ Object
readonly
Returns the value of attribute height.
-
#input ⇒ Object
readonly
Returns the value of attribute input.
-
#is_default ⇒ Object
readonly
Returns the value of attribute is_default.
-
#url ⇒ Object
readonly
Returns the value of attribute url.
-
#width ⇒ Object
readonly
Returns the value of attribute width.
Instance Method Summary collapse
-
#initialize(hash) ⇒ AvatarImageObject
constructor
A new instance of AvatarImageObject.
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
#height ⇒ Object (readonly)
Returns the value of attribute height.
45 46 47 |
# File 'lib/ayadn/user_object.rb', line 45 def height @height end |
#input ⇒ Object (readonly)
Returns the value of attribute input.
45 46 47 |
# File 'lib/ayadn/user_object.rb', line 45 def input @input end |
#is_default ⇒ Object (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 |
#url ⇒ Object (readonly)
Returns the value of attribute url.
45 46 47 |
# File 'lib/ayadn/user_object.rb', line 45 def url @url end |
#width ⇒ Object (readonly)
Returns the value of attribute width.
45 46 47 |
# File 'lib/ayadn/user_object.rb', line 45 def width @width end |