Class: Codily::UpdatePayload

Inherits:
Object
  • Object
show all
Defined in:
lib/codily/update_payload.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#hashObject

Returns the value of attribute hash.



11
12
13
# File 'lib/codily/update_payload.rb', line 11

def hash
  @hash
end

#idObject

Returns the value of attribute id.



11
12
13
# File 'lib/codily/update_payload.rb', line 11

def id
  @id
end

#nameObject

Returns the value of attribute name.



11
12
13
# File 'lib/codily/update_payload.rb', line 11

def name
  @name
end

#service_idObject

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_numberObject 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_hashObject



15
16
17
# File 'lib/codily/update_payload.rb', line 15

def as_hash
  @hash
end