Class: Twitter::Size

Inherits:
Base
  • Object
show all
Defined in:
lib/twitter/size.rb

Instance Attribute Summary collapse

Attributes inherited from Base

#attrs

Instance Method Summary collapse

Methods inherited from Base

#[], attr_reader, fetch, fetch_or_new, from_response, identity_map, #initialize, store, #update

Constructor Details

This class inherits a constructor from Twitter::Base

Instance Attribute Details

#hObject (readonly) Also known as: height

Returns the value of attribute h.



5
6
7
# File 'lib/twitter/size.rb', line 5

def h
  @h
end

#resizeObject (readonly)

Returns the value of attribute resize.



5
6
7
# File 'lib/twitter/size.rb', line 5

def resize
  @resize
end

#wObject (readonly) Also known as: width

Returns the value of attribute w.



5
6
7
# File 'lib/twitter/size.rb', line 5

def w
  @w
end

Instance Method Details

#==(other) ⇒ Boolean

Parameters:

Returns:

  • (Boolean)


11
12
13
# File 'lib/twitter/size.rb', line 11

def ==(other)
  super || size_equal(other) || attrs_equal(other)
end