krtschmr / monero

Ruby client to connect to the Monero RPC
MIT License
24 stars 12 forks source link

Use attr_reader when instantiating client #20

Closed xaviablaza closed 5 years ago

xaviablaza commented 5 years ago

Description

Previously, when the $monero_rpc is instantiated, you could still change the host (meaning that there is still a possibility of a race condition when instance is used across threads). This fixes it so that once the $monero_rpc is instantiated, you cannot change the host, like what #16 was intended to do.

Added a test to check if setter methods cannot be accessed.