[#197] sdk/object: Rename getters of Attribute and Object types

Signed-off-by: Leonard Lyubich <leonard@nspcc.ru>
This commit is contained in:
Leonard Lyubich 2020-11-16 11:48:38 +03:00 committed by Alex Vanin
parent 67bcf6eb4d
commit 5f5e5ac5dd
7 changed files with 82 additions and 82 deletions

View file

@ -19,8 +19,8 @@ func NewAttribute() *Attribute {
return NewAttributeFromV2(new(object.Attribute))
}
// GetKey returns key to the object attribute.
func (a *Attribute) GetKey() string {
// Key returns key to the object attribute.
func (a *Attribute) Key() string {
return (*object.Attribute)(a).GetKey()
}
@ -29,8 +29,8 @@ func (a *Attribute) SetKey(v string) {
(*object.Attribute)(a).SetKey(v)
}
// GetValue return value of the object attribute.
func (a *Attribute) GetValue() string {
// Value return value of the object attribute.
func (a *Attribute) Value() string {
return (*object.Attribute)(a).GetValue()
}