Class: ChatWork::Me

Inherits:
Entity show all
Defined in:
lib/chatwork/me.rb

Constant Summary

Constants included from Operations

Operations::ACCEPT_PARAMS_ID

Instance Attribute Summary

Attributes inherited from Entity

#attributes

Attributes included from Operations

#assign_path

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from Entity

convert, hash_compact, #initialize

Methods included from Operations

#define_create, #define_get, #install_class_operations

Constructor Details

This class inherits a constructor from ChatWork::Entity

Class Method Details

.getHash

Get your account information

Examples:

response format

{
  "account_id": 123,
  "room_id": 322,
  "name": "John Smith",
  "chatwork_id": "tarochatworkid",
  "organization_id": 101,
  "organization_name": "Hello Company",
  "department": "Marketing",
  "title": "CMO",
  "url": "http://mycompany.example.com",
  "introduction": "Self Introduction",
  "mail": "[email protected]",
  "tel_organization": "XXX-XXXX-XXXX",
  "tel_extension": "YYY-YYYY-YYYY",
  "tel_mobile": "ZZZ-ZZZZ-ZZZZ",
  "skype": "myskype_id",
  "facebook": "myfacebook_id",
  "twitter": "mytwitter_id",
  "avatar_image_url": "https://example.com/abc.png",
  "login_mail": "[email protected]"
}

Returns:

  • (Hash)

See Also:


33
34
35
# File 'lib/chatwork/me.rb', line 33

def self.get
  _get
end

.pathObject


37
38
39
# File 'lib/chatwork/me.rb', line 37

def self.path
  "/me"
end

Instance Method Details

#pathObject


41
42
43
# File 'lib/chatwork/me.rb', line 41

def path
  "/me"
end