Class: Githubris::Base
- Inherits:
-
Object
- Object
- Githubris::Base
- Extended by:
- CustomAttributes
- Defined in:
- lib/githubris/base.rb
Instance Method Summary collapse
- #==(other) ⇒ Object
-
#initialize(attributes = {}) ⇒ Base
constructor
A new instance of Base.
- #swap_attributes(other) ⇒ Object
Constructor Details
Instance Method Details
#==(other) ⇒ Object
9 10 11 |
# File 'lib/githubris/base.rb', line 9 def ==(other) @attributes == other.instance_variable_get(:@attributes) end |
#swap_attributes(other) ⇒ Object
13 14 15 16 17 |
# File 'lib/githubris/base.rb', line 13 def swap_attributes(other) instance_variable_set(:@attributes, other.instance_variable_get(:@attributes)) self end |