Class: Retab::CreateFileBlueprintRequest
- Inherits:
-
Types::BaseModel
- Object
- Types::BaseModel
- Retab::CreateFileBlueprintRequest
- 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
-
#background ⇒ Object
Returns the value of attribute background.
-
#file_id ⇒ Object
Returns the value of attribute file_id.
-
#intent ⇒ Object
Returns the value of attribute intent.
-
#mode ⇒ Object
Returns the value of attribute mode.
Attributes inherited from Types::BaseModel
Instance Method Summary collapse
-
#initialize(json) ⇒ CreateFileBlueprintRequest
constructor
A new instance of CreateFileBlueprintRequest.
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
#background ⇒ Object
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_id ⇒ Object
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 |
#intent ⇒ Object
Returns the value of attribute intent.
15 16 17 |
# File 'lib/retab/files/create_file_blueprint_request.rb', line 15 def intent @intent end |
#mode ⇒ Object
Returns the value of attribute mode.
15 16 17 |
# File 'lib/retab/files/create_file_blueprint_request.rb', line 15 def mode @mode end |