Class: GrowViral::Warehouse::Client
- Inherits:
-
Object
- Object
- GrowViral::Warehouse::Client
- Defined in:
- lib/warehouse/client.rb
Instance Attribute Summary collapse
-
#config ⇒ Object
readonly
Returns the value of attribute config.
Instance Method Summary collapse
- #has_follow_history?(handle, following_handle) ⇒ Boolean
-
#initialize(env) ⇒ Client
constructor
A new instance of Client.
- #register_follow!(handle, following_handle) ⇒ Object
Constructor Details
#initialize(env) ⇒ Client
Returns a new instance of Client.
6 7 8 |
# File 'lib/warehouse/client.rb', line 6 def initialize(env) @config = Configuration.new(env) end |
Instance Attribute Details
#config ⇒ Object (readonly)
Returns the value of attribute config.
5 6 7 |
# File 'lib/warehouse/client.rb', line 5 def config @config end |
Instance Method Details
#has_follow_history?(handle, following_handle) ⇒ Boolean
14 15 16 |
# File 'lib/warehouse/client.rb', line 14 def has_follow_history?(handle, following_handle) ChecksFollowHistory.exists?(handle, following_handle, config: config) end |
#register_follow!(handle, following_handle) ⇒ Object
10 11 12 |
# File 'lib/warehouse/client.rb', line 10 def register_follow!(handle, following_handle) RegistersFollows.register(handle, following_handle, config: config) end |