Class: Strobe::Resources::PlatformInstall

Inherits:
Object
  • Object
show all
Includes:
Strobe::Resource::Collection
Defined in:
lib/strobe/resources/platform_install.rb

Instance Attribute Summary

Attributes included from Strobe::Resource::Base

#response

Instance Method Summary collapse

Methods included from Strobe::Resource::Collection

#id, #key, #reload, #reload!

Methods included from Strobe::Resource::Base

#[], #[]=, #destroy, #initialize, #key?, #merge!, #params, #params=, #persisted?, #save, #save!

Methods included from Validations

#read_attribute_for_validation, #valid_attribute?, #valid_for_given_attributes?

Instance Method Details

#update_uriObject



8
9
10
# File 'lib/strobe/resources/platform_install.rb', line 8

def update_uri
  "/platform_installs/#{self[:id]}/pages/configuration"
end

#web?Boolean

Returns:

  • (Boolean)


12
13
14
# File 'lib/strobe/resources/platform_install.rb', line 12

def web?
  self['platform_id'] == 4
end