Class: Cadenya::Types::CreateObjectiveRequest_Secret
- Inherits:
-
Object
- Object
- Cadenya::Types::CreateObjectiveRequest_Secret
- Defined in:
- lib/cadenya/types.rb
Instance Attribute Summary collapse
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#value ⇒ Object
readonly
Returns the value of attribute value.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(name: nil, value: nil) ⇒ CreateObjectiveRequest_Secret
constructor
A new instance of CreateObjectiveRequest_Secret.
- #to_h ⇒ Object
Constructor Details
#initialize(name: nil, value: nil) ⇒ CreateObjectiveRequest_Secret
Returns a new instance of CreateObjectiveRequest_Secret.
1756 1757 1758 1759 |
# File 'lib/cadenya/types.rb', line 1756 def initialize(name: nil, value: nil) @name = name @value = value end |
Instance Attribute Details
#name ⇒ Object (readonly)
Returns the value of attribute name.
1754 1755 1756 |
# File 'lib/cadenya/types.rb', line 1754 def name @name end |
#value ⇒ Object (readonly)
Returns the value of attribute value.
1754 1755 1756 |
# File 'lib/cadenya/types.rb', line 1754 def value @value end |
Class Method Details
.from_json(data) ⇒ Object
1761 1762 1763 1764 1765 1766 |
# File 'lib/cadenya/types.rb', line 1761 def self.from_json(data) new( name: data["name"], value: data["value"], ) end |