Exception: OutdatedFrameworkBuildError
- Defined in:
- lib/errors.rb
Instance Attribute Summary collapse
-
#build_version ⇒ Object
readonly
Returns the value of attribute build_version.
-
#cartfile_resolved_version ⇒ Object
readonly
Returns the value of attribute cartfile_resolved_version.
-
#framework_name ⇒ Object
readonly
Returns the value of attribute framework_name.
Instance Method Summary collapse
- #==(o) ⇒ Object
-
#initialize(framework_name, build_version, cartfile_resolved_version) ⇒ OutdatedFrameworkBuildError
constructor
A new instance of OutdatedFrameworkBuildError.
- #to_s ⇒ Object
Constructor Details
#initialize(framework_name, build_version, cartfile_resolved_version) ⇒ OutdatedFrameworkBuildError
Returns a new instance of OutdatedFrameworkBuildError.
27 28 29 30 31 |
# File 'lib/errors.rb', line 27 def initialize(framework_name, build_version, cartfile_resolved_version) @framework_name = framework_name @build_version = build_version @cartfile_resolved_version = cartfile_resolved_version end |
Instance Attribute Details
#build_version ⇒ Object (readonly)
Returns the value of attribute build_version.
25 26 27 |
# File 'lib/errors.rb', line 25 def build_version @build_version end |
#cartfile_resolved_version ⇒ Object (readonly)
Returns the value of attribute cartfile_resolved_version.
25 26 27 |
# File 'lib/errors.rb', line 25 def cartfile_resolved_version @cartfile_resolved_version end |
#framework_name ⇒ Object (readonly)
Returns the value of attribute framework_name.
25 26 27 |
# File 'lib/errors.rb', line 25 def framework_name @framework_name end |
Instance Method Details
#==(o) ⇒ Object
33 34 35 |
# File 'lib/errors.rb', line 33 def ==(o) self.class == o.class && state == o.state end |
#to_s ⇒ Object
37 38 39 |
# File 'lib/errors.rb', line 37 def to_s "framework name: #{@framework_name}, build version: #{@build_version}, resolved version: #{@cartfile_resolved_version}" end |