Class: Croudia::Source

Inherits:
Base
  • Object
show all
Defined in:
lib/croudia/source.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from Base

#[], attr_object_reader, attr_reader, #attrs, #initialize, #inspect

Constructor Details

This class inherits a constructor from Croudia::Base

Instance Attribute Details

#nameObject (readonly) Also known as: to_s

Returns the value of attribute name.



5
6
7
# File 'lib/croudia/source.rb', line 5

def name
  @name
end

#urlObject (readonly)

Returns the value of attribute url.



5
6
7
# File 'lib/croudia/source.rb', line 5

def url
  @url
end

Instance Method Details

#==(other) ⇒ Object



12
13
14
15
# File 'lib/croudia/source.rb', line 12

def ==(other)
  super || (other.is_a?(Croudia::Source) &&
    name == other.name && url == other.url)
end