Class: GemContribute::HostAdapter::ForkResult

Inherits:
Data
  • Object
show all
Defined in:
lib/gem_contribute/host_adapter.rb

Overview

Result of a successful ‘fork(project)`.

  • clone_url: HTTPS URL suitable for ‘git clone`.

  • fork_url: human-readable web URL of the fork (used in summaries).

  • viewer: the authenticated user’s login (and the fork’s owner).

  • reused: true if the fork already existed; false if just created.

Instance Attribute Summary collapse

Instance Attribute Details

#clone_urlObject (readonly)

Returns the value of attribute clone_url

Returns:

  • (Object)

    the current value of clone_url



37
38
39
# File 'lib/gem_contribute/host_adapter.rb', line 37

def clone_url
  @clone_url
end

#fork_urlObject (readonly)

Returns the value of attribute fork_url

Returns:

  • (Object)

    the current value of fork_url



37
38
39
# File 'lib/gem_contribute/host_adapter.rb', line 37

def fork_url
  @fork_url
end

#reusedObject (readonly)

Returns the value of attribute reused

Returns:

  • (Object)

    the current value of reused



37
38
39
# File 'lib/gem_contribute/host_adapter.rb', line 37

def reused
  @reused
end

#viewerObject (readonly)

Returns the value of attribute viewer

Returns:

  • (Object)

    the current value of viewer



37
38
39
# File 'lib/gem_contribute/host_adapter.rb', line 37

def viewer
  @viewer
end