Class: RubyGPG2::StatusLines::Unimplemented

Inherits:
Object
  • Object
show all
Defined in:
lib/ruby_gpg2/status_lines/unimplemented.rb

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(opts) ⇒ Unimplemented

Returns a new instance of Unimplemented.



14
15
16
# File 'lib/ruby_gpg2/status_lines/unimplemented.rb', line 14

def initialize(opts)
  @raw = opts[:raw]
end

Instance Attribute Details

#rawObject (readonly)

Returns the value of attribute raw.



10
11
12
# File 'lib/ruby_gpg2/status_lines/unimplemented.rb', line 10

def raw
  @raw
end

Class Method Details

.parse(line) ⇒ Object



6
7
8
# File 'lib/ruby_gpg2/status_lines/unimplemented.rb', line 6

def self.parse(line)
  new(raw: line)
end

Instance Method Details

#==(other) ⇒ Object



22
23
24
# File 'lib/ruby_gpg2/status_lines/unimplemented.rb', line 22

def ==(other)
  other.class == self.class && other.state == state
end

#typeObject



18
19
20
# File 'lib/ruby_gpg2/status_lines/unimplemented.rb', line 18

def type
  :unknown
end