Class: LLT::Review::Helpers::Parsing::Helper::Annotator

Inherits:
Object
  • Object
show all
Defined in:
lib/llt/review/helpers/parsing/helper/annotator.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#addressObject

Returns the value of attribute address.



4
5
6
# File 'lib/llt/review/helpers/parsing/helper/annotator.rb', line 4

def address
  @address
end

#nameObject

Returns the value of attribute name.



4
5
6
# File 'lib/llt/review/helpers/parsing/helper/annotator.rb', line 4

def name
  @name
end

#shortObject

Returns the value of attribute short.



4
5
6
# File 'lib/llt/review/helpers/parsing/helper/annotator.rb', line 4

def short
  @short
end

#uriObject

Returns the value of attribute uri.



4
5
6
# File 'lib/llt/review/helpers/parsing/helper/annotator.rb', line 4

def uri
  @uri
end

Instance Method Details

#complete?Boolean

Returns:

  • (Boolean)


6
7
8
# File 'lib/llt/review/helpers/parsing/helper/annotator.rb', line 6

def complete?
  @short && @name && @address && @uri
end

#name_and_short_to_sObject



10
11
12
# File 'lib/llt/review/helpers/parsing/helper/annotator.rb', line 10

def name_and_short_to_s
  "#{@name} (#{@short})"
end