Class: GrowViral::Warehouse::Client

Inherits:
Object
  • Object
show all
Defined in:
lib/warehouse/client.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#configObject (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

Returns:

  • (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