Class: Hashipack::ArtifactMessage

Inherits:
Message
  • Object
show all
Defined in:
lib/hashipack/message.rb

Instance Method Summary collapse

Methods inherited from Message

#artifact?, #initialize, parse, #timestamp, #ui?

Constructor Details

This class inherits a constructor from Hashipack::Message

Instance Method Details

#keyObject



66
67
68
# File 'lib/hashipack/message.rb', line 66

def key
  @parts[4]
end

#numberObject



62
63
64
# File 'lib/hashipack/message.rb', line 62

def number
  @parts[3].to_i
end

#typeObject



58
59
60
# File 'lib/hashipack/message.rb', line 58

def type
  :artifact
end

#valueObject



70
71
72
# File 'lib/hashipack/message.rb', line 70

def value
  @parts[5]
end