Class: Skein::RPC::Base
- Inherits:
-
Object
show all
- Defined in:
- lib/skein/rpc/base.rb
Instance Attribute Summary collapse
-
#id ⇒ Object
Properties ===========================================================.
Instance Method Summary
collapse
Instance Attribute Details
#id ⇒ Object
Properties ===========================================================
8
9
10
|
# File 'lib/skein/rpc/base.rb', line 8
def id
@id
end
|
Instance Method Details
#to_h ⇒ Object
Instance Methods =====================================================
12
13
14
15
16
|
# File 'lib/skein/rpc/base.rb', line 12
def to_h
{
id: self.id
}
end
|
#to_json ⇒ Object
18
19
20
21
22
|
# File 'lib/skein/rpc/base.rb', line 18
def to_json
JSON.dump(
self.to_h
)
end
|