Class: Marver::Url

Inherits:
Object
  • Object
show all
Defined in:
lib/marver/entities/url.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(attrs) ⇒ Url

Returns a new instance of Url.



5
6
7
8
# File 'lib/marver/entities/url.rb', line 5

def initialize(attrs)
  @type = attrs['type']
  @url = attrs['url']
end

Instance Attribute Details

#typeObject (readonly)

Returns the value of attribute type.



3
4
5
# File 'lib/marver/entities/url.rb', line 3

def type
  @type
end

#urlObject (readonly)

Returns the value of attribute url.



3
4
5
# File 'lib/marver/entities/url.rb', line 3

def url
  @url
end