Class: Octoparts::Model::PartRequestParam
- Inherits:
-
Object
- Object
- Octoparts::Model::PartRequestParam
- Defined in:
- lib/octoparts/model/part_request_param.rb
Instance Attribute Summary collapse
-
#key ⇒ Object
Returns the value of attribute key.
-
#value ⇒ Object
Returns the value of attribute value.
Class Method Summary collapse
Instance Attribute Details
#key ⇒ Object
Returns the value of attribute key.
4 5 6 |
# File 'lib/octoparts/model/part_request_param.rb', line 4 def key @key end |
#value ⇒ Object
Returns the value of attribute value.
4 5 6 |
# File 'lib/octoparts/model/part_request_param.rb', line 4 def value @value end |
Class Method Details
.create(key, value) ⇒ Object
6 7 8 9 10 11 |
# File 'lib/octoparts/model/part_request_param.rb', line 6 def self.create(key, value) new.tap do |s| s.key = key s.value = value end end |