Class: VersSdk::RepoTagInfo

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

Overview

Tag information within a repository context

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.from_json(json_str) ⇒ Object



2030
2031
2032
2033
# File 'lib/vers_sdk/models.rb', line 2030

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



2035
2036
2037
2038
2039
2040
2041
2042
2043
2044
2045
# File 'lib/vers_sdk/models.rb', line 2035

def to_h
  {
    "commit_id" => @repo_tag_info,
    "created_at" => @repo_tag_info,
    "description" => @repo_tag_info,
    "reference" => @repo_tag_info,
    "tag_id" => @repo_tag_info,
    "tag_name" => @repo_tag_info,
    "updated_at" => @repo_tag_info,
  }
end

#to_json(*args) ⇒ Object



2047
2048
2049
# File 'lib/vers_sdk/models.rb', line 2047

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