Sha256: 332003994d47dfc73f64edbbd7bcbf1955dc66bdb1e91fbd8f3015e116f52423

Contents?: true

Size: 445 Bytes

Versions: 5

Compression:

Stored size: 445 Bytes

Contents

# frozen_string_literal: true
require "lunanode/api_actions/default/image"

module Lunanode
  module APIActions
    module Image
      # Contents may extend or overwrite methods from the default module.

      # Filters {#image_list} results for user's account images only.
      def image_list_mine(region: nil)
        image_list(region: region).select do |image|
          image[:image_id].to_i > 9999
        end
      end
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
lunanode-0.3.1 lib/lunanode/api_actions/image.rb
lunanode-0.3.0 lib/lunanode/api_actions/image.rb
lunanode-0.2.0 lib/lunanode/api_actions/image.rb
lunanode-0.1.6 lib/lunanode/api_actions/image.rb
lunanode-0.1.5 lib/lunanode/api_actions/image.rb