Class: Cadenya::Types::Objective_Secret
- Inherits:
-
Object
- Object
- Cadenya::Types::Objective_Secret
- Defined in:
- lib/cadenya/types.rb
Instance Attribute Summary collapse
-
#name ⇒ Object
readonly
Returns the value of attribute name.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(name: nil) ⇒ Objective_Secret
constructor
A new instance of Objective_Secret.
- #to_h ⇒ Object
Constructor Details
#initialize(name: nil) ⇒ Objective_Secret
Returns a new instance of Objective_Secret.
4347 4348 4349 |
# File 'lib/cadenya/types.rb', line 4347 def initialize(name: nil) @name = name end |
Instance Attribute Details
#name ⇒ Object (readonly)
Returns the value of attribute name.
4345 4346 4347 |
# File 'lib/cadenya/types.rb', line 4345 def name @name end |
Class Method Details
.from_json(data) ⇒ Object
4351 4352 4353 4354 4355 |
# File 'lib/cadenya/types.rb', line 4351 def self.from_json(data) new( name: data["name"], ) end |