Class: ChatWork::Entity

Inherits:
Object
  • Object
show all
Extended by:
Operations
Defined in:
lib/chatwork/entity.rb

Direct Known Subclasses

Me, Member, Message, MyTask, Room, Task

Constant Summary

Constants included from Operations

Operations::ACCEPT_PARAMS_ID

Instance Attribute Summary collapse

Attributes included from Operations

#assign_path

Class Method Summary collapse

Instance Method Summary collapse

Methods included from Operations

define_create, define_get, install_class_operations

Constructor Details

#initialize(attributes) ⇒ Entity

Returns a new instance of Entity.



15
16
17
# File 'lib/chatwork/entity.rb', line 15

def initialize(attributes)
  @attributes = attributes
end

Instance Attribute Details

#attributesObject (readonly)

Returns the value of attribute attributes.



13
14
15
# File 'lib/chatwork/entity.rb', line 13

def attributes
  @attributes
end

Class Method Details

.convert(hash) ⇒ Object



5
6
7
8
9
10
# File 'lib/chatwork/entity.rb', line 5

def convert(hash)
  # not implement
  #converter = ResponseConverter.new
  #converter.convert(hash)
  return hash
end