Class: TripleParser::Third

Inherits:
String
  • Object
show all
Defined in:
lib/triple_parser/third.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#argumentsObject

Returns the value of attribute arguments.



5
6
7
# File 'lib/triple_parser/third.rb', line 5

def arguments
  @arguments
end

#rdf_styleObject

Returns the value of attribute rdf_style.



5
6
7
# File 'lib/triple_parser/third.rb', line 5

def rdf_style
  @rdf_style
end

#typeObject

Returns the value of attribute type.



5
6
7
# File 'lib/triple_parser/third.rb', line 5

def type
  @type
end

#urlObject

Returns the value of attribute url.



5
6
7
# File 'lib/triple_parser/third.rb', line 5

def url
  @url
end

#valueObject

Returns the value of attribute value.



5
6
7
# File 'lib/triple_parser/third.rb', line 5

def value
  @value
end