Class: Orchid::PackageDoesNotExistError

Inherits:
Object
  • Object
show all
Defined in:
lib/orchid/package.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(msg, package, vapidirs = nil) ⇒ PackageDoesNotExistError

Returns a new instance of PackageDoesNotExistError.



34
35
36
37
38
39
40
# File 'lib/orchid/package.rb', line 34

def initialize(msg, package, vapidirs = nil)
  if vapidirs
    @vapidirs = vapidirs.to_a.uniq.compact
  end
  
  @message = msg
end

Instance Attribute Details

#messageObject (readonly)

Returns the value of attribute message.



30
31
32
# File 'lib/orchid/package.rb', line 30

def message
  @message
end

#packageObject (readonly)

Returns the value of attribute package.



31
32
33
# File 'lib/orchid/package.rb', line 31

def package
  @package
end

#vapidirsObject (readonly)

Returns the value of attribute vapidirs.



32
33
34
# File 'lib/orchid/package.rb', line 32

def vapidirs
  @vapidirs
end

Instance Method Details

#to_sObject



42
43
44
# File 'lib/orchid/package.rb', line 42

def to_s
  @message
end

#to_strObject



46
47
48
# File 'lib/orchid/package.rb', line 46

def to_str
  @message
end