Class: Zm::Client::Tag

Inherits:
Base::Object show all
Includes:
MailboxItemConcern, RequestMethodsMailbox
Defined in:
lib/zm/client/tag/tag.rb

Overview

class account tag

Instance Attribute Summary collapse

Attributes included from MailboxItemConcern

#l

Attributes inherited from Base::Object

#id, #parent, #token

Instance Method Summary collapse

Methods included from MailboxItemConcern

#id, #id=, #mailbox_id

Methods included from RequestMethodsMailbox

#build_create, #build_delete, #build_modify, #build_rename, #delete!, #modify!, #rename!, #update!

Methods inherited from Base::Object

#clone, #initialize, #inspect, #instance_variables_map, #logger, #recorded?, #save!, #to_h, #to_s, #update_attribute

Constructor Details

This class inherits a constructor from Zm::Client::Base::Object

Instance Attribute Details

#colorObject

Returns the value of attribute color.



10
11
12
# File 'lib/zm/client/tag/tag.rb', line 10

def color
  @color
end

#nameObject

Returns the value of attribute name.



10
11
12
# File 'lib/zm/client/tag/tag.rb', line 10

def name
  @name
end

#rgbObject

Returns the value of attribute rgb.



10
11
12
# File 'lib/zm/client/tag/tag.rb', line 10

def rgb
  @rgb
end

Instance Method Details

#create!Object



12
13
14
15
16
17
# File 'lib/zm/client/tag/tag.rb', line 12

def create!
  rep = @parent.soap_connector.invoke(build_create)
  json = rep[:CreateTagResponse][:tag].first
  TagJsnsInitializer.update(self, json)
  id
end