Class: Retab::RetabUsage
- Inherits:
-
Types::BaseModel
- Object
- Types::BaseModel
- Retab::RetabUsage
- Defined in:
- lib/retab/extractions/retab_usage.rb
Constant Summary collapse
- HASH_ATTRS =
{ credits: :credits }.freeze
Instance Attribute Summary collapse
-
#credits ⇒ Object
Returns the value of attribute credits.
Attributes inherited from Types::BaseModel
Instance Method Summary collapse
-
#initialize(json) ⇒ RetabUsage
constructor
A new instance of RetabUsage.
Methods inherited from Types::BaseModel
#inspect, normalize, #to_h, #to_json
Constructor Details
#initialize(json) ⇒ RetabUsage
Returns a new instance of RetabUsage.
14 15 16 17 |
# File 'lib/retab/extractions/retab_usage.rb', line 14 def initialize(json) hash = self.class.normalize(json) @credits = hash[:credits] end |
Instance Attribute Details
#credits ⇒ Object
Returns the value of attribute credits.
12 13 14 |
# File 'lib/retab/extractions/retab_usage.rb', line 12 def credits @credits end |