Class: Octoparts::Model::PartRequestParam

Inherits:
Object
  • Object
show all
Defined in:
lib/octoparts/model/part_request_param.rb

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#keyObject

Returns the value of attribute key.



4
5
6
# File 'lib/octoparts/model/part_request_param.rb', line 4

def key
  @key
end

#valueObject

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