Sha256: ba6c1cad4715c0135b9bc3e97e3452ecc6893612f65e5a79b396afaaf8960091

Contents?: true

Size: 413 Bytes

Versions: 1

Compression:

Stored size: 413 Bytes

Contents

module EveOnline
  class BookmarkFolder
    attr_reader :options

    def initialize(options = {})
      @options = options
    end

    def as_json(*args)
      {
        folder_id: folder_id,
        folder_name: folder_name
      }
    end

    def folder_id
      @folder_d ||= options.fetch('@folderID').to_i
    end

    def folder_name
      @folder_name ||= options.fetch('@folderName')
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
eve_online-0.7.0 lib/eve_online/bookmark_folder.rb