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.



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

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

Instance Attribute Details

#rawObject (readonly)

Returns the value of attribute raw.



8
9
10
# File 'lib/ruby_gpg2/status_lines/unimplemented.rb', line 8

def raw
  @raw
end

Class Method Details

.parse(line) ⇒ Object



4
5
6
# File 'lib/ruby_gpg2/status_lines/unimplemented.rb', line 4

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

Instance Method Details

#==(other) ⇒ Object



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

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

#typeObject



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

def type
  :unknown
end