Class: VersSdk::CreateTagResponse

Inherits:
Object
  • Object
show all
Defined in:
lib/vers_sdk/models.rb

Overview

Response body for POST /api/v1/commit_tags

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.from_json(json_str) ⇒ Object



1291
1292
1293
1294
# File 'lib/vers_sdk/models.rb', line 1291

def self.from_json(json_str)
  obj = json_str.is_a?(String) ? JSON.parse(json_str) : json_str
  new(obj)
end

Instance Method Details

#to_hObject



1296
1297
1298
1299
1300
1301
1302
# File 'lib/vers_sdk/models.rb', line 1296

def to_h
  {
    "commit_id" => @create_tag_response,
    "tag_id" => @create_tag_response,
    "tag_name" => @create_tag_response,
  }
end

#to_json(*args) ⇒ Object



1304
1305
1306
# File 'lib/vers_sdk/models.rb', line 1304

def to_json(*args)
  to_h.to_json(*args)
end