Class: Thanos::Url

Inherits:
Object
  • Object
show all
Defined in:
lib/thanos/resources/url.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(data) ⇒ Url

Returns a new instance of Url.



5
6
7
8
# File 'lib/thanos/resources/url.rb', line 5

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

Instance Attribute Details

#typeObject (readonly)

Returns the value of attribute type.



3
4
5
# File 'lib/thanos/resources/url.rb', line 3

def type
  @type
end

#urlObject (readonly)

Returns the value of attribute url.



3
4
5
# File 'lib/thanos/resources/url.rb', line 3

def url
  @url
end