Class: Ayadn::CoverImageObject

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(hash) ⇒ CoverImageObject

Returns a new instance of CoverImageObject.



60
61
62
63
64
65
66
# File 'lib/ayadn/user_object.rb', line 60

def initialize hash
  @input = hash["cover_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.



58
59
60
# File 'lib/ayadn/user_object.rb', line 58

def height
  @height
end

#inputObject (readonly)

Returns the value of attribute input.



58
59
60
# File 'lib/ayadn/user_object.rb', line 58

def input
  @input
end

#is_defaultObject (readonly)

Returns the value of attribute is_default.



58
59
60
# File 'lib/ayadn/user_object.rb', line 58

def is_default
  @is_default
end

#urlObject (readonly)

Returns the value of attribute url.



58
59
60
# File 'lib/ayadn/user_object.rb', line 58

def url
  @url
end

#widthObject (readonly)

Returns the value of attribute width.



58
59
60
# File 'lib/ayadn/user_object.rb', line 58

def width
  @width
end