Class: FigmaComponentsStylesResult
- Inherits:
-
Object
- Object
- FigmaComponentsStylesResult
- Defined in:
- lib/admiral-tools-figma/helper/figma/figma_client/models/api/results/figma_components_styles_result.rb
Instance Attribute Summary collapse
-
#error ⇒ Object
Returns the value of attribute error.
-
#meta ⇒ Object
Returns the value of attribute meta.
-
#status ⇒ Object
Returns the value of attribute status.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(error:, status:, meta:) ⇒ FigmaComponentsStylesResult
constructor
A new instance of FigmaComponentsStylesResult.
- #to_hash ⇒ Object
Constructor Details
#initialize(error:, status:, meta:) ⇒ FigmaComponentsStylesResult
Returns a new instance of FigmaComponentsStylesResult.
8 9 10 11 12 |
# File 'lib/admiral-tools-figma/helper/figma/figma_client/models/api/results/figma_components_styles_result.rb', line 8 def initialize(error:, status:, meta:) @error = error @status = status @meta = end |
Instance Attribute Details
#error ⇒ Object
Returns the value of attribute error.
6 7 8 |
# File 'lib/admiral-tools-figma/helper/figma/figma_client/models/api/results/figma_components_styles_result.rb', line 6 def error @error end |
#meta ⇒ Object
Returns the value of attribute meta.
6 7 8 |
# File 'lib/admiral-tools-figma/helper/figma/figma_client/models/api/results/figma_components_styles_result.rb', line 6 def @meta end |
#status ⇒ Object
Returns the value of attribute status.
6 7 8 |
# File 'lib/admiral-tools-figma/helper/figma/figma_client/models/api/results/figma_components_styles_result.rb', line 6 def status @status end |
Class Method Details
.from_hash(hash) ⇒ Object
14 15 16 17 18 19 20 21 22 23 24 25 26 27 |
# File 'lib/admiral-tools-figma/helper/figma/figma_client/models/api/results/figma_components_styles_result.rb', line 14 def self.from_hash(hash) return nil if hash.nil? error = hash['error'] status = hash['status'] = hash['meta'] = .nil? ? nil : FigmaComponentsStylesMeta.from_hash() if !error.nil? && !status.nil? && !.nil? return FigmaComponentsStylesResult.new(error: error, status: status, meta: ) end nil end |
Instance Method Details
#to_hash ⇒ Object
29 30 31 32 33 34 35 |
# File 'lib/admiral-tools-figma/helper/figma/figma_client/models/api/results/figma_components_styles_result.rb', line 29 def to_hash hash = {} hash['error'] = error hash['status'] = status hash['meta'] = .to_hash unless .nil? hash end |