Class: Ayadn::CoverImageObject
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) ⇒ CoverImageObject
constructor
A new instance of CoverImageObject.
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
#height ⇒ Object (readonly)
Returns the value of attribute height.
58 59 60 |
# File 'lib/ayadn/user_object.rb', line 58 def height @height end |
#input ⇒ Object (readonly)
Returns the value of attribute input.
58 59 60 |
# File 'lib/ayadn/user_object.rb', line 58 def input @input end |
#is_default ⇒ Object (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 |
#url ⇒ Object (readonly)
Returns the value of attribute url.
58 59 60 |
# File 'lib/ayadn/user_object.rb', line 58 def url @url end |
#width ⇒ Object (readonly)
Returns the value of attribute width.
58 59 60 |
# File 'lib/ayadn/user_object.rb', line 58 def width @width end |