Class: DeployGate::Xcode::MemberCenter
- Inherits:
-
Object
- Object
- DeployGate::Xcode::MemberCenter
- Defined in:
- lib/deploygate/xcode/member_center.rb
Instance Attribute Summary collapse
-
#email ⇒ Object
readonly
Returns the value of attribute email.
-
#launcher ⇒ Object
readonly
Returns the value of attribute launcher.
-
#method ⇒ Object
readonly
Returns the value of attribute method.
-
#team ⇒ Object
readonly
Returns the value of attribute team.
Instance Method Summary collapse
- #adhoc? ⇒ Boolean
- #in_house? ⇒ Boolean
-
#initialize(team_id) ⇒ MemberCenter
constructor
A new instance of MemberCenter.
Constructor Details
#initialize(team_id) ⇒ MemberCenter
Returns a new instance of MemberCenter.
6 7 8 9 10 11 12 13 14 15 16 |
# File 'lib/deploygate/xcode/member_center.rb', line 6 def initialize(team_id) @email = input_email @launcher = Spaceship::Launcher.new @email @team = @launcher.select_team(team_id: team_id) if @launcher.client.in_house? @method = Export::ENTERPRISE else @method = Export::AD_HOC end end |
Instance Attribute Details
#email ⇒ Object (readonly)
Returns the value of attribute email.
4 5 6 |
# File 'lib/deploygate/xcode/member_center.rb', line 4 def email @email end |
#launcher ⇒ Object (readonly)
Returns the value of attribute launcher.
4 5 6 |
# File 'lib/deploygate/xcode/member_center.rb', line 4 def launcher @launcher end |
#method ⇒ Object (readonly)
Returns the value of attribute method.
4 5 6 |
# File 'lib/deploygate/xcode/member_center.rb', line 4 def method @method end |
#team ⇒ Object (readonly)
Returns the value of attribute team.
4 5 6 |
# File 'lib/deploygate/xcode/member_center.rb', line 4 def team @team end |
Instance Method Details
#adhoc? ⇒ Boolean
19 20 21 |
# File 'lib/deploygate/xcode/member_center.rb', line 19 def adhoc? @method == Export::AD_HOC end |
#in_house? ⇒ Boolean
24 25 26 |
# File 'lib/deploygate/xcode/member_center.rb', line 24 def in_house? @method == Export::ENTERPRISE end |