class BELParser::Resource::FileResource

Attributes

domain[R]
identifier[R]
keyword[R]
name[R]
types[R]

Public Class Methods

new(identifier, domain, keyword, name, type) click to toggle source
# File lib/bel_parser/resource/file_resource.rb, line 12
def initialize(identifier, domain, keyword, name, type)
  @identifier = identifier.to_s
  @domain     = domain.to_s
  @keyword    = keyword.to_s
  @name       = name.to_s
  @types      = [type]
end

Public Instance Methods

uri?() click to toggle source
# File lib/bel_parser/resource/file_resource.rb, line 20
def uri?
  false
end
url?() click to toggle source
# File lib/bel_parser/resource/file_resource.rb, line 24
def url?
  true
end