Class: OpConnect::Item::URL
- Inherits:
-
Object
- Object
- OpConnect::Item::URL
- Defined in:
- lib/op_connect/item/url.rb
Instance Attribute Summary collapse
-
#is_primary ⇒ Object
(also: #primary?)
readonly
Returns the value of attribute is_primary.
-
#url ⇒ Object
readonly
Returns the value of attribute url.
Instance Method Summary collapse
-
#initialize(options = {}) ⇒ URL
constructor
A new instance of URL.
Constructor Details
#initialize(options = {}) ⇒ URL
Returns a new instance of URL.
8 9 10 11 |
# File 'lib/op_connect/item/url.rb', line 8 def initialize( = {}) @url = ["url"] @is_primary = ["primary"] || false end |
Instance Attribute Details
#is_primary ⇒ Object (readonly) Also known as: primary?
Returns the value of attribute is_primary.
4 5 6 |
# File 'lib/op_connect/item/url.rb', line 4 def is_primary @is_primary end |
#url ⇒ Object (readonly)
Returns the value of attribute url.
4 5 6 |
# File 'lib/op_connect/item/url.rb', line 4 def url @url end |