Class: Codily::UpdatePayload
- Inherits:
-
Object
- Object
- Codily::UpdatePayload
- Defined in:
- lib/codily/update_payload.rb
Instance Attribute Summary collapse
-
#hash ⇒ Object
Returns the value of attribute hash.
-
#id ⇒ Object
Returns the value of attribute id.
-
#name ⇒ Object
Returns the value of attribute name.
-
#service_id ⇒ Object
Returns the value of attribute service_id.
-
#version_number ⇒ Object
(also: #version)
Returns the value of attribute version_number.
Instance Method Summary collapse
- #as_hash ⇒ Object
-
#initialize(id: nil, service_id: nil, version_number: nil, name: nil, hash: nil) ⇒ UpdatePayload
constructor
A new instance of UpdatePayload.
Constructor Details
#initialize(id: nil, service_id: nil, version_number: nil, name: nil, hash: nil) ⇒ UpdatePayload
Returns a new instance of UpdatePayload.
3 4 5 6 7 8 9 |
# File 'lib/codily/update_payload.rb', line 3 def initialize(id: nil, service_id: nil, version_number: nil, name: nil, hash: nil) @id = id @service_id = service_id @version_number = version_number @name = name @hash = hash end |
Instance Attribute Details
#hash ⇒ Object
Returns the value of attribute hash.
11 12 13 |
# File 'lib/codily/update_payload.rb', line 11 def hash @hash end |
#id ⇒ Object
Returns the value of attribute id.
11 12 13 |
# File 'lib/codily/update_payload.rb', line 11 def id @id end |
#name ⇒ Object
Returns the value of attribute name.
11 12 13 |
# File 'lib/codily/update_payload.rb', line 11 def name @name end |
#service_id ⇒ Object
Returns the value of attribute service_id.
11 12 13 |
# File 'lib/codily/update_payload.rb', line 11 def service_id @service_id end |
#version_number ⇒ Object Also known as: version
Returns the value of attribute version_number.
11 12 13 |
# File 'lib/codily/update_payload.rb', line 11 def version_number @version_number end |
Instance Method Details
#as_hash ⇒ Object
15 16 17 |
# File 'lib/codily/update_payload.rb', line 15 def as_hash @hash end |