Class: Marver::Url
- Inherits:
-
Object
- Object
- Marver::Url
- Defined in:
- lib/marver/entities/url.rb
Instance Attribute Summary collapse
-
#type ⇒ Object
readonly
Returns the value of attribute type.
-
#url ⇒ Object
readonly
Returns the value of attribute url.
Instance Method Summary collapse
-
#initialize(attrs) ⇒ Url
constructor
A new instance of Url.
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
#type ⇒ Object (readonly)
Returns the value of attribute type.
3 4 5 |
# File 'lib/marver/entities/url.rb', line 3 def type @type end |
#url ⇒ Object (readonly)
Returns the value of attribute url.
3 4 5 |
# File 'lib/marver/entities/url.rb', line 3 def url @url end |