class Scene7::Company
Attributes
attributes[R]
Public Class Methods
find_by_name(name)
click to toggle source
# File lib/scene7/company.rb, line 3 def self.find_by_name(name) response = Scene7::Client.perform_request(:get_company_info, :company_name => name) company_data = response.to_hash[:get_company_info_return][:company_info] new(company_data) end
new(attributes)
click to toggle source
# File lib/scene7/company.rb, line 13 def initialize(attributes) @attributes = attributes end
Public Instance Methods
handle()
click to toggle source
# File lib/scene7/company.rb, line 21 def handle attributes[:company_handle] end
name()
click to toggle source
# File lib/scene7/company.rb, line 17 def name attributes[:name] end
root_path()
click to toggle source
# File lib/scene7/company.rb, line 25 def root_path attributes[:root_path] end