Class: Retab::CreateFileBlueprintRequest

Inherits:
Types::BaseModel show all
Defined in:
lib/retab/files/create_file_blueprint_request.rb

Constant Summary collapse

HASH_ATTRS =
{
  file_id: :file_id,
  mode: :mode,
  intent: :intent,
  background: :background
}.freeze

Instance Attribute Summary collapse

Attributes inherited from Types::BaseModel

#last_response

Instance Method Summary collapse

Methods inherited from Types::BaseModel

deep_symbolize, #inspect, normalize, #to_h, #to_json

Constructor Details

#initialize(json) ⇒ CreateFileBlueprintRequest

Returns a new instance of CreateFileBlueprintRequest.



22
23
24
25
26
27
28
29
# File 'lib/retab/files/create_file_blueprint_request.rb', line 22

def initialize(json)
  super()
  hash = self.class.normalize(json)
  @file_id = hash[:file_id]
  @mode = hash[:mode]
  @intent = hash[:intent]
  @background = hash[:background].nil? ? false : hash[:background]
end

Instance Attribute Details

#backgroundObject

Returns the value of attribute background.



15
16
17
# File 'lib/retab/files/create_file_blueprint_request.rb', line 15

def background
  @background
end

#file_idObject

Returns the value of attribute file_id.



15
16
17
# File 'lib/retab/files/create_file_blueprint_request.rb', line 15

def file_id
  @file_id
end

#intentObject

Returns the value of attribute intent.



15
16
17
# File 'lib/retab/files/create_file_blueprint_request.rb', line 15

def intent
  @intent
end

#modeObject

Returns the value of attribute mode.



15
16
17
# File 'lib/retab/files/create_file_blueprint_request.rb', line 15

def mode
  @mode
end