Class: Traceparts::CadFormat
- Inherits:
-
Object
- Object
- Traceparts::CadFormat
- Defined in:
- lib/traceparts/cad_format.rb
Instance Attribute Summary collapse
-
#id ⇒ Object
readonly
Returns the value of attribute id.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
Instance Method Summary collapse
-
#initialize(client, data) ⇒ CadFormat
constructor
A new instance of CadFormat.
Constructor Details
#initialize(client, data) ⇒ CadFormat
Returns a new instance of CadFormat.
5 6 7 8 9 10 |
# File 'lib/traceparts/cad_format.rb', line 5 def initialize(client, data) @client = client @id = data.fetch('cadFormatId') @name = data.fetch('cadFormatName') end |
Instance Attribute Details
#id ⇒ Object (readonly)
Returns the value of attribute id.
3 4 5 |
# File 'lib/traceparts/cad_format.rb', line 3 def id @id end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
3 4 5 |
# File 'lib/traceparts/cad_format.rb', line 3 def name @name end |