lib/hcloud/future.rb in hcloud-1.2.0 vs lib/hcloud/future.rb in hcloud-1.3.0

- old
+ new

@@ -2,13 +2,16 @@ require 'active_support/core_ext/string/inflections' module Hcloud class Future < Delegator + attr_reader :raw_data + # rubocop: disable Lint/MissingSuper - def initialize(client, target_class, id) + def initialize(client, target_class, id, raw_data: nil) @target_class = target_class @id = id + @raw_data = raw_data @__client = client end # rubocop: enable Lint/MissingSuper def __getobj__