Class: TripleParser::Third
- Inherits:
-
String
- Object
- String
- TripleParser::Third
- Defined in:
- lib/triple_parser/third.rb
Instance Attribute Summary collapse
-
#arguments ⇒ Object
Returns the value of attribute arguments.
-
#rdf_style ⇒ Object
Returns the value of attribute rdf_style.
-
#type ⇒ Object
Returns the value of attribute type.
-
#url ⇒ Object
Returns the value of attribute url.
-
#value ⇒ Object
Returns the value of attribute value.
Instance Method Summary collapse
-
#initialize(string, args = {}) ⇒ Third
constructor
A new instance of Third.
Constructor Details
#initialize(string, args = {}) ⇒ Third
Returns a new instance of Third.
7 8 9 10 11 12 13 14 |
# File 'lib/triple_parser/third.rb', line 7 def initialize(string, args = {}) @type = args[:type] @value = args[:value] @arguments = args[:arguments] @rdf_style = args[:rdf_style] @url = args[:url] super(string) end |
Instance Attribute Details
#arguments ⇒ Object
Returns the value of attribute arguments.
5 6 7 |
# File 'lib/triple_parser/third.rb', line 5 def arguments @arguments end |
#rdf_style ⇒ Object
Returns the value of attribute rdf_style.
5 6 7 |
# File 'lib/triple_parser/third.rb', line 5 def rdf_style @rdf_style end |
#type ⇒ Object
Returns the value of attribute type.
5 6 7 |
# File 'lib/triple_parser/third.rb', line 5 def type @type end |
#url ⇒ Object
Returns the value of attribute url.
5 6 7 |
# File 'lib/triple_parser/third.rb', line 5 def url @url end |
#value ⇒ Object
Returns the value of attribute value.
5 6 7 |
# File 'lib/triple_parser/third.rb', line 5 def value @value end |