lib/gooddata/models/segment.rb in gooddata-0.6.25 vs lib/gooddata/models/segment.rb in gooddata-0.6.26
- old
+ new
@@ -114,9 +114,18 @@
alias_method :master=, :master_project=
# Master project id getter for the Segment.
#
# @return [String] Project uri
+ def master_project_id
+ GoodData::Helpers.last_uri_part(master_project_uri)
+ end
+
+ alias_method :master_id, :master_project_id
+
+ # Master project uri getter for the Segment.
+ #
+ # @return [String] Project uri
def master_project_uri
data['masterProject']
end
alias_method :master_uri, :master_project_uri