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



1966
1967
1968
1969
# File 'lib/vers_sdk/models.rb', line 1966

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



1971
1972
1973
1974
1975
1976
1977
# File 'lib/vers_sdk/models.rb', line 1971

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

#to_json(*args) ⇒ Object



1979
1980
1981
# File 'lib/vers_sdk/models.rb', line 1979

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