Class: DatagroutConduit::GuideOption
- Inherits:
-
Struct
- Object
- Struct
- DatagroutConduit::GuideOption
- Defined in:
- lib/datagrout_conduit/types.rb
Instance Attribute Summary collapse
-
#description ⇒ Object
Returns the value of attribute description.
-
#id ⇒ Object
Returns the value of attribute id.
-
#label ⇒ Object
Returns the value of attribute label.
Class Method Summary collapse
Instance Attribute Details
#description ⇒ Object
Returns the value of attribute description
178 179 180 |
# File 'lib/datagrout_conduit/types.rb', line 178 def description @description end |
#id ⇒ Object
Returns the value of attribute id
178 179 180 |
# File 'lib/datagrout_conduit/types.rb', line 178 def id @id end |
#label ⇒ Object
Returns the value of attribute label
178 179 180 |
# File 'lib/datagrout_conduit/types.rb', line 178 def label @label end |
Class Method Details
.from_hash(hash) ⇒ Object
179 180 181 182 |
# File 'lib/datagrout_conduit/types.rb', line 179 def self.from_hash(hash) hash = hash.transform_keys(&:to_s) new(id: hash["id"], label: hash["label"], description: hash["description"]) end |