Class: Ncn::CommandParams::Open
- Defined in:
- lib/ncn/command_params/open.rb
Instance Attribute Summary
Attributes inherited from Base
Instance Method Summary collapse
-
#ids ⇒ Array{Integer}?
Array of note ids or nil if there are none.
Methods inherited from Base
Constructor Details
This class inherits a constructor from Ncn::CommandParams::Base
Instance Method Details
#ids ⇒ Array{Integer}?
Returns array of note ids or nil if there are none.
5 6 7 8 |
# File 'lib/ncn/command_params/open.rb', line 5 def ids return unless arguments&.any? arguments.map { normalize_note_id(_1) } end |